मैं निम्न आईओएस (सिम्युलेटर नहीं) पर अपना आईओएस ऐप लॉन्च करता हूं (ऐप पहले से स्थापित है)।आईओएस उपकरणों के साथ ऐप लॉन्च करना अविश्वसनीय
instruments \
-w c717fa22472d7b691ae5763af90e1e44244ad85a \
-t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \
-D "/Users/mj/Desktop/apps/trace" \
LPSimpleExample-cal \
-e UIARESULTSPATH /Users/mj/Desktop/apps \
-e UIASCRIPT /Users/mj/Desktop/apps/_run_loop.js
10 बार में से 6 बार यह काम कर रहा है।
2013-10-07 16:45:51.553 instruments[9891:1207] unable to locate CFBundleIdentifier for path: LPSimpleExample-cal
2013-10-07 16:45:51.555 instruments[9891:1207] Recording cancelled : At least one target failed to launch; aborting run
Instruments Trace Error : Error Domain=com.apple.instruments Code=1 "Error Starting Recording" UserInfo=0x7faccbef8fa0 {NSLocalizedDescription=Error Starting Recording, NSLocalizedRecoverySuggestion=At least one target failed to launch; aborting run}
Instruments Trace Error : Failed to start trace.
मेरे लिए यह लग रहा है कि उपकरणों एक बग यहाँ है: एक त्रुटि के मामले में मैं निम्न संदेश मिलता है। मैंने विभिन्न परिदृश्यों में 100 बार से अधिक ऐप लॉन्च करने का प्रयास किया और मैं एक त्रुटि पैटर्न का विश्लेषण नहीं कर सकता। डिवाइस crashlog का कहना है:
Process: DTMobileIS [34956]
Path: /Developer/Library/Daemons/DTMobileIS
Identifier: DTMobileIS
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: lockbot [34938]
Date/Time: 2013-10-07 15:29:05.474 -0700
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
अपवाद प्रकार EXC_BAD_ACCESS (SIGSEGV)
इंगित करता है कि एक वस्तु जो पहुँचा जा रहा है पहले से ही जारी की गई है। एक SIGSEGV
एक विभाजन गलती है, जिसका अर्थ है कि आप एक अवैध स्मृति पते तक पहुंचने का प्रयास कर रहे हैं। संदर्भ: bundleIdentifier का उपयोग करने का Exception Types in iOS crash logs
इसके बजाय मैं भी पूर्ण एप्लिकेशन पथ या पूर्ण bundleIdentifier निर्दिष्ट करने के लिए करने की कोशिश की:
# with full app path
instruments \
-w c717fa22472d7b691ae5763af90e1e44244ad85a \
-t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \
-D "/Users/mj/Desktop/apps/trace" \
/Users/mj/Desktop/apps/LPSimpleExample-cal.app \
-e UIARESULTSPATH /Users/mj/Desktop/apps \
-e UIASCRIPT /Users/mj/Desktop/apps/_run_loop.js
# with full bundleIdentifier
instruments \
-w c717fa22472d7b691ae5763af90e1e44244ad85a \
-t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate \
-D "/Users/mj/Desktop/apps/trace" \
/Users/mj/Desktop/apps/LPSimpleExample-cal.app \
-e UIARESULTSPATH /Users/mj/Desktop/apps \
-e UIASCRIPT /Users/mj/Desktop/apps/_run_loop.js
विन्यास विवरण
- उपकरण संस्करण: 5.0 (51,166)
- एक्सकोड संस्करण: 5.0 (5 ए 1413)
- डिवाइस प्रकार: आईफ़ोन ई 5 - 6.1.3, iPhone 5C - 7.02, iPhone 5 एस - 7.0.2
किसी को भी अधिक जानकारी है, जिसमें मामलों उपकरणों डिवाइस पर एक एप्लिकेशन लॉन्च नहीं कर सकते हैं या आप त्रुटि संदेश प्राप्त होता है जब ऐसा है unable to locate CFBundleIdentifier for path: LPSimpleExample-cal
?
मुझे एक ही समस्या है, अगर आपको कहीं भी मिलता है तो मुझे बताएं http://stackoverflow.com/questions/19234031/launching-xcode-4-instruments-not-the-xcode-5-version-for-uiautomation – Jules
मैं आपको सूचित रखूंगा। आपका स्टैक ओवरफ्लो पोस्ट अब सार्वजनिक नहीं है। –