【发布时间】:2019-09-12 07:14:13
【问题描述】:
我正在按照这里的程序:https://developers.facebook.com/docs/ios/getting-started/advanced#sim_build
我首先在 iPhone 5s 上运行构建
然后我从命令行使用(填写所有星号和目的地)
ditto -ck --sequesterRsrc --keepParent `ls -1 -d -t ~/Library/Developer/Xcode/DerivedData/*/Build/Products/*-iphonesimulator/*.app | head -n 1` path/to/YourApp.zip
然后
ios-sim launch /path/to/your-app.app
启动构建,也可以从命令行和替换文件路径
我收到此错误
/Users/planetsanzio/Desktop/MyApp.zip/Info.plist file not found.
此外,从 Finder 中查看时,文件本身上方有一个灰色的“x”。双击构建文件时弹出以下错误
You can’t use this version of the application “Chain” with this version of macOS.
You have macOS 10.14.4. The application requires macOS 12.0 or later.
其中 12.0 是应用的 iOS 目标版本。每当我尝试将 zip 文件上传到 Facebook 时,它都会说尝试上传文件时出错
我是否正确地遵循了程序?有没有人经历过这种情况?
注意 - 我没有使用 Cordova
【问题讨论】:
-
你的系统中有多个 Xcode 吗?
-
没有。我有 1 个 Xcode 图标,之前没有尝试安装多个。
-
您指向的是 zip 文件吗? /Users/planetsanzio/Desktop/MyApp.zip?你应该这样做吗?
-
我指向一个 zip 文件,“ios-sim launch /path/to/your-app.app”这一行是从 facebook 指南中复制而来的。在运行命令之前,我将其更改为“ios-sim launch /Users/planetsanzio/Desktop/Chain.zip”