简体   繁体   中英

Adding a custom Framework to an Xcode project

I decided to try to make a Cocoa Touch Framework. Making it worked fine, but I am having trouble adding it to a project. After searching through a lot of SO posts and looking at Apple Forum threads I decided to try this from the Docs:

Add a framework bundle to a project in order to incorporate the framework's features into your product.

In the project navigator, select the project or group within a project to which you want to add the framework.

Choose File > Add Files to “”.

Select the framework bundle, and click Add.

The frameworks you add this way are third-party-built bundles containing the framework's object code and runtime resources. See related articles for information about linking to a framework without adding it to the project.

After you add the framework, Xcode configures the targets in your project to link them to the framework just added.

It still doesn't work. I am getting a No such module 'Scaffold' error for everything I try, I have checked spelling, but that is not it. Can someone explain how this works? I might just need clarification on how this is done.

Links I have looked at:

Hey I do not know if it is too late to answer this question, but due to the fact that I am facing same issues right know I would recommend you to check the Build Settings of the project where you import your framework

You should check the "Framework Search Path" and if the framework is at Swift and you import to an obj c project check YES to "Always embed swift standard libraries"

More or less the problem I think is in the Build Settings

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM