当我尝试使用以下命令构建xcode项目时:
xcodebuild -workspace "Converse.xcworkspace" -sch eme "Converse" -configuration “Debug” -sdk iphonesimulator7.1 -arch i386 ONLY_ ACTIVE_ARCH=NO
它运行良好,但是当我尝试双击它生成的应用程序时,它说:You can’t open the application because it is not supported on this type of Mac.
有人知道为什么会这样吗?
iOS应用需要模拟器才能运行。您可以按照您所说的从Xcode运行它们。如果您没有该项目,则需要像这样部署它们:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication /Path/ToIso.app/AppName
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句