Can I upload Xcode builds on macOS 10.12

拥有回忆 提交于 2019-12-18 12:27:22

问题


Will I be capable of submitting an app with Xcode 7.3.1 while on the macOS 10.12 beta? According to this post, it is possible to run Xcode 7 alongside macOS 10.12.


回答1:


Yes, you can! But if you're tying to do this, you will find two problems.

  1. no .app file provided in bundle

Build with Xcode 7.3.1 then upload using Xcode 8 [Beta]. This will allow you to upload the archive.

  1. When trying to submit to the store you will be faced with this error message:

    New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, OS X, and tvOS SDK. Don't submit apps built with beta software including beta OS X builds.

This is because your archive contain the Sierra's mark! I just solved this problem yesterday.

When you archived your app, find your archive in the Organizer, and then:

  • "Show in finder";
  • "Show package contents";
  • In the "xx.xcarchive" file, find the "Products"-"Applications"-"xx.app"(xx is your app's name), "Show package contents" again;
  • Finally, you can see there has a file named"Info.plist", open it;
  • Edit the value with a key named "BuildMachineOSBuild", I just change it to "15F34"(it's "El Capitan 10.11.5" 's version);

After that, you can upload this archive use Xcode or Application Loader, whatever you want!




回答2:


Decided to try it out myself. Both methods of exporting through Xcode and Application Launcher failed with an error stating there was no .app file provided in bundle. Best to stay away from the macOS 10.12 beta if you want to continue developing for iOS 9.



来源:https://stackoverflow.com/questions/37823382/can-i-upload-xcode-builds-on-macos-10-12

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!