Apps manually installed in simulator crashes upon load

后端 未结 4 1625
你的背包
你的背包 2021-01-04 01:54

I\'m installing MyApp on the iOS simulator (Xcode 7, iOS 9) using xcrun simctl install booted MyPath/MyApp.app.

This works as expected and

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-04 02:56

    This can happen if you use the wrong sdk. If the project is built using the physical device sdk it crashes on start up when you try to open it on the simulator.

    If you are building it from the command line with xcrun xcodebuild check thet the sdk is "iphonesimulator" not "iphoneos"

    e.g xcrun xcodebuild -scheme -configuration Debug -project .xcodeproj -sdk iphonesimulator build

提交回复
热议问题