Xcode 6 iOS Creating a Cocoa Touch Framework - Architectures issues

后端 未结 10 1849
眼角桃花
眼角桃花 2020-11-27 09:54

I\'m trying to make a dynamic framework for an iOS app. Thanks to the new version of Xcode (6) we can select a Cocoa Touch Framework when we create a new project and there i

10条回答
  •  -上瘾入骨i
    2020-11-27 10:00

    Few additional points around the approach shared by vladof that are more applicable to swift based Frameworks

    1. The script in the associated link needs modification to copy all files from both iphonesimulator and iphoneos since the swift has separate compiled files for arm and i386
    2. Ensure that you have ARCHS="x86_64" ONLY_ACTIVE_ARCH=NO in the build for iphonesimulator to avoid linker issues for simulator
    3. Ensure that your interface/class extends NSObject otherwise you will run into issues when you try to use the code in swift (it will complain about not being able to create object using ().

提交回复
热议问题