Xcode 6 iOS Creating a Cocoa Touch Framework - Architectures issues

后端 未结 10 1858
眼角桃花
眼角桃花 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:27

    Based on all the responses, the post on raywenderlich.com and the gist created by Chris Conway I came up with this.

    Executing the following steps I was able to build a Cocoa Touch framework (including Swift and Objective-C files) that contains all architectures for both simulator and device:

    1. Create a new (Aggregate) target in your framework's project
    2. Under "Build Phases" select "Add Run Script" and copy the contents of this file
    3. Select the Aggregate target in the Scheme Selection drop down
    4. Build the target for the aggregate scheme

    Hope it helps :)

    UPDATE: Fixed an error in the gist where the paths in step #3 were incorrect. Thanks to Tokuriku!!

    UPDATE In Xcode 7 and 8, click File>New>Target... and there select "Other" group to select Aggregate target

提交回复
热议问题