2015-06-18 14 views
7

में ऐप्लिकेशन को इंस्टॉल जब मैं, हटा दिया गया सिम्युलेटर में मेरे ऐप स्थापित करने का प्रयास इस तरह नहीं .app में बंडल पहचानकर्ता पा सकते हैं:Simctl स्थापित जब सिम्युलेटर

xcrun simctl install booted /build/iphone/build/Debug-iphonesimulator/foo.app 

मैं निम्नलिखित परिणाम प्राप्त:

An error was encountered processing the command (code=22): 
Failed to install the requested application 
The bundle identifier of the application could not be determined. 
Ensure that the application's Info.plist contains a value for CFBundleIdentifier. 

जब मैं .app के अंदर Info.plist का निरीक्षण करता हूं, तो CFBundleIdentiefier वहां और सही है।

<key>CFBundleIdentifier</key> 
    <string>com.bar.foo</string> 

मैं Yosemite

सिम्युलेटर स्थापना समय में हटा दिया गया है पर xcode 6.3.2 का उपयोग कर रहा हूँ।

मैं क्या गलत कर रहा हूं?

उत्तर

3

सभी यह था, एक गलत रास्ता था:

xcrun simctl install booted /build/iphone/build/Debug-iphonesimulator/foo.app 

पहले फ़ॉरवर्ड स्लैश वहां नहीं होना चाहिए ... कि के रूप में सरल:

xcrun simctl install booted build/iphone/build/Debug-iphonesimulator/foo.app 
+2

मैं शायद त्रुटि संदेश बनाना चाहिए उस मामले के लिए थोड़ा बेहतर है। कृपया http://bugreport.apple.com पर एक रडार दर्ज करें –

+0

बग एनआर के तहत दायर: 21456832 –

+0

रिपोर्ट मिला कि यह एक्ससी के आगामी संस्करण में तय किया गया था, लेकिन अभी तक सत्यापित करने में सक्षम नहीं है। –

संबंधित मुद्दे