gpt4 book ai didi

javascript - 在 iPad 上调试 trigger.io 应用程序

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:49:32 24 4
gpt4 key购买 nike

我正在使用 trigger.io 为 iPad 开发应用程序.应用构建在模拟器中找到并运行。它还成功构建了一个 ipa,我可以通过 testflight 在我的 iPad 上安装它.

当我在 local_config.json 中使用 "device": "device" 尝试 forge run ios 时,它将所有内容复制到设备,然后给出以下错误:

[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

有什么想法吗?

进一步更新:

当我尝试运行 Forge bootstrap 时出现同样的问题iPad 上的应用程序,所以我认为它与我的代码无关...

还有一个更新!

刚刚注意到在命令运行时似乎出错了两次。在下面提供更完整的输出,以防有帮助:

$ 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

最佳答案

尝试重启手机和电脑。

我在这里找到了解决方案: iPhone - strange error when testing on simulator

编辑:我又遇到了这个问题,主要是证书或配置文件错误的结果。请看iOS App runs on simulator but not device? .

关于javascript - 在 iPad 上调试 trigger.io 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11990527/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com