Ionic ios build fails, error archive not found

后端 未结 6 753
礼貌的吻别
礼貌的吻别 2020-12-07 15:44

I\'ve been trying to figure this out, but there doesn\'t seem to be any light at the end of the tunnel, thus trying it here...hope you can help.

I have an Ionic proj

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 16:17

    Hope this is still helpful.

    A couple of Pitfalls: Preparing the XCODE file.

    It’s time to prepare the project to be opened in XCODE. However Ionic-Cordova doesn’t support the NEW build system of XCODE. So the project has to be prepared for the Legacy build system. Pitfall #2. Important! Disconnect your iPhone or iPad device connected to the Mac or the following command won’t work!!! Pitfall #3.

    ionic cordova build ios --prod --buildFlag='-UseModernBuildSystem=0'
    

    Congrats! Your MyApp.xcodeproj(ect) file is ready. You’re almost half way to have an IPA uploaded. Just double click on the Myapp.xcodeproj file or open it through XCODE.

    There are several other pitfalls you will find:

    • It’s a common Pitfall#4 to not have the proper privilege set. In particular the rol “Developer” (Pitfall#4.1) doesn’t have privileges to push Apps to the Store
    • Double check that the “Bundle Identifier” is exactly the one you set in the config.xml file!
    • XCODE exposes a Signing bug, Pitfall#5, so untick the “Automatically manage signing” and tick again. You will face this bug for sure.

    XCODE bugs and Cordova not supporting properly the new building system leads to all these issues. I made a full guide showing how to fix them after lurking hours. Hope it helps!

提交回复
热议问题