I want to build a "Designed for iPhone" app to run on an Apple Silicon Mac.
running xcodebuild -showdestinations
gives me a fitting destination
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008112-000E54C126F9401E }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:25EFC1E1-1C64-4A9F-9EF5-28AD20DDCA79, OS:16.0, name:iPhone 13 mini }
building for the -destination "id:00008112-000E54C126F9401E" build something, but just creates a iOS bundle, no macOS app.
I wasn't able to get xcodebuild
to build a Mac app for me, but I was able to slap together a mac app that runs on the developer machine anyway: build an iOS release version of your app and put it in a directory structure that looks like this:
RunOnMac.app/
├── WrappedBundle -> Wrapper/RunOnMac.app
└── Wrapper
└── RunOnMac.app
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.