lambdanative
lambdanative copied to clipboard
Can the iOS Target Architecture be set to x86 easily?
When submitting to the App Store one needs to create screenshots for both the iPhone and iPad Pro, but I do not own and iPad to create the screenshots. Doing some research it's possible to install the .ipa on the Simulator using the following:
xcrun simctl install booted xyz.app
The problem is the programs crash on launch as they are not built for the correct architecture.
Is there a way to set the target architecture for iOS to x86? If not, could there be? It would be very handy for the creation of the screenshots on a budget.
The budget option is to resize the screenshots using an image editing tool of you choosing, which is what we do. Adding x86 is not straight forward as you probably don't want a fat binary containing arm, arm64, and x86 in one? Otherwise look at targets/ios/host_macosx_armv7 and see if you can make a x86 equivalent. Might require quite a few changes in other places too, I fear.
I just want to be able to create the .ipa with x86 for the creation of screenshots, not the submission process. I did manually do some resizing on the ones I've submitted so far, but it's tricky since the aspect ratios of the devices are different. My next app won't allow for this as it's going to use the onscreen keyboard and manual editing really isn't an option.
I'll do some playing around and research. I wasn't sure if this was easily done. Thank you.
Partial support added in e0ee93b. When creating host_macosx_386
and host_macosx_86_64
and commenting both host_macosx_arm64
and host_macosx_armv7
the resulting fat binary runs in the simulator but can't be signed. A fat library containing all four architectures is possible to build and get signed, but doesn't run in the simulator.