Xcode 6 iOS Creating a Cocoa Touch Framework - Architectures issues

后端 未结 10 1864
眼角桃花
眼角桃花 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条回答
  •  清歌不尽
    2020-11-27 10:12

    Wanted to add something to the lipo script answer provided by skywinder here. I followed the steps but still couldn't get my framework to run on simulator, only device. To fix that:

    -I went into the debug-iphonesimulator version of the framework, and in Modules/[FrameworkName].swiftmodule, I copied all of the i386 and X86 files.

    -I then went into the newly-created fat version of the framework, and navigated to that same folder. I pasted in the i386 and X86 files (to go with the ARM files already in there), and then added my fat framework to my project.

    Voila, she works on simulator and real device! This is Xcode 10 / Swift 4.2 btw

提交回复
热议问题