我正在使用trigger.io为 iPad 开发一个应用程序。应用程序构建在模拟器中查找并运行。它还成功构建到 ipa,我可以通过testflight在我的 iPad 上安装它。
当我尝试forge run ios
使用它时"device": "device"
,local_config.json
它将所有内容复制到设备,然后出现以下错误:
[100%] Installed package /[path]/development/ios/device-ios.app/
------ Debug phase ------
Assertion failed: (AMDeviceStartService(device, CFSTR("com.apple.debugserver"), &gdbfd, NULL) == 0), function start_remote_debug_server, file fruitstrap.c, line 231.
[ ERROR] See /[path]/forge-error.log for more details
[ ERROR] Please contact support@trigger.io
该forge-error.log
文件不存在。
有谁知道是什么原因造成的?
OSX Lion、XCode 4.1、iPad 2、iOS 5.1.1
更新:
更新到 XCode 4.4.1,它变得更进一步了。这是新的错误:
[100%] Installed package /[path]/development/ios/device-ios.app/
------ Debug phase ------
[100%] Connecting to remote debug server
-------------------------
Switching to remote-macosx protocol
[New thread 7171]
[Switching to process 7171 thread 0x1c03]
0x2fe51028 in ?? ()
Reading symbols for shared libraries . done
[ ERROR] See /[path]/forge-error.log for more details
有任何想法吗?
进一步更新:
当我尝试在 iPad 上运行Forge 引导应用程序时也会出现同样的问题,所以我认为这与我的代码无关......
还有另一个更新!
刚刚注意到命令运行时它似乎出错了两次。在下面提供更完整的输出以防有帮助:
$ forge run ios
[ INFO] Forge tools running at version 3.3.11
[ INFO] Checking JavaScript files...
[ INFO] JavaScript check complete
[ INFO] Verifying your configuration settings...
[ INFO] Configuration settings check complete
[ INFO] Running on iOS device: device
[ INFO] Plist OK
[ INFO] Installing app on device: is it connected?
[ INFO] ------ Install phase ------
[ INFO] [....] Waiting up to 10 seconds for iOS device to be connected
[ INFO] [ 0%] Found device (fe29da73fa45e10dfb3ca8cabd215c10de079137), beginning install
[ INFO] [ 5%] Copying /[path]/development/ios/device-ios.app/ to device
<snip>
[ INFO] [ 49%] Copying /[path]/development/ios/device-ios.app//tabs_modalWebViewController.nib to device
[ INFO] [ 50%] TakingInstallLock
[ INFO] [ 52%] CreatingStagingDirectory
[ INFO] [ 57%] ExtractingPackage
[ INFO] [ 60%] InspectingPackage
[ INFO] [ 65%] PreflightingApplication
[ INFO] [ 70%] VerifyingApplication
[ INFO] [ 70%] InstallingEmbeddedProfile
[ INFO] [ 80%] InstallingApplication
[ INFO] [ 85%] PostflightingApplication
[ INFO] [ 90%] SandboxingApplication
[ INFO] [100%] Installed package /[path]/development/ios/device-ios.app/
[ INFO] ------ Debug phase ------
[ INFO] [100%] Connecting to remote debug server
[ INFO] -------------------------
[ INFO] Switching to remote-macosx protocol
[ INFO] [New thread 7171]
[ INFO] [Switching to process 7171 thread 0x1c03]
[ INFO] 0x2fe11028 in ?? ()
[ INFO] Reading symbols for shared libraries . done
[ ERROR] Something went wrong that we didn't expect:
[ ERROR] Failed when running /[path]/.lib/fruitstrap: ------ Install phase ------
[....] Waiting up to 10 seconds for iOS device to be connected
[ 0%] Found device (fe29da73fa45e10dfb3ca8cabd215c10de079137), beginning install
[ 5%] Copying /[path]/development/ios/device-ios.app/ to device
<snip>
[ 49%] Copying /[path]/development/ios/device-ios.app//tabs_modalWebViewController.nib to device
[ 50%] TakingInstallLock
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 65%] PreflightingApplication
[ 70%] VerifyingApplication
[ 70%] InstallingEmbeddedProfile
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[100%] Installed package /[path]/development/ios/device-ios.app/
------ Debug phase ------
[100%] Connecting to remote debug server
-------------------------
Switching to remote-macosx protocol
[New thread 7171]
[Switching to process 7171 thread 0x1c03]
0x2fe11028 in ?? ()
Reading symbols for shared libraries . done
[ ERROR] See /[path]/forge-error.log for more details
[ ERROR] Please contact support@trigger.io