xcode 7.1 swift framework app builds but not archiving

前端 未结 2 1482
借酒劲吻你
借酒劲吻你 2020-12-01 07:15

I have created a sample Framework in Swift, xcode 7.1. The framework is then built for Profiling, released version. Released framework then added(embedded) to an iOS test ap

相关标签:
2条回答
  • 2020-12-01 07:28

    You can make the following if you can build the framework (for example if you use your own framework)

    This will allow your framework to provide the required bitcode.


    Another alternative option may be applicable if you dont have watchOS and Apple TV (according to docs)

    For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS and tvOS apps, bitcode is required.

    this option require to set ENABLE_BITCODE for every target in buildSetting to NO, but as expected this forbid to use bitcode functionality.

    More about bitcode here

    0 讨论(0)
  • 2020-12-01 07:46

    xcode requires that bitcode for all embedded frameworks is generated during archiving.

    Copying the release build of framework/dylib isn't enough

    do
    archive the framework and THEN use the archived version of the framework from then on.

    to get xcode to archive a framework (normally it only archives apps), set the build setting 'skip install' to NO for the framework target!

    0 讨论(0)
提交回复
热议问题