2

我正在使用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
4

2 回答 2

1

尝试重启手机和电脑。

我在这里找到了解决方案: iPhone - 在模拟器上测试时出现奇怪的错误

编辑:我又遇到了这个问题,主要是由于错误的证书或配置文件。请参阅iOS App 在模拟器上运行而不是在设备上运行?.

于 2012-08-20T09:42:28.760 回答
0

尝试释放设备上的空间,然后重新启动以防万一。为我解决了。

于 2013-11-16T01:39:37.903 回答