Fabio
Fabio

Reputation: 671

How to embed framework without copying in project

There was a similar question, but the answer is no

I use appodeal-ios-sdk-mobile-adapter. I want to add them to your projects without copying each. enter image description here in the Link Binary with Libraries framework added But I get:

ld: framework not found GoogleMobileAds

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Upvotes: 3

Views: 982

Answers (2)

Fabio
Fabio

Reputation: 671

In order to add the framework to your project without copying proeta folder, drag the folder using the (Create groups), and add the path where you have a set framework -> "Build Setting -> Library Search Paths and Framework Search Paths

/Users/username/Framework/AppodealAdapters/**

Upvotes: 2

Md. Ibrahim Hassan
Md. Ibrahim Hassan

Reputation: 5467

Well you can open the system directory where all the frameworks are present that is in the system folder where all the frameworks are installed

Hit Shift+Command+G

and use the below address

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks

Once in the directory copy the framework which you want to use. Take care to not mess around other frameworks in this directory.

Once the frameworks are copied into this directory you can add them to your project just like you include a regular system defined framework.

Try it out it works for me. I am using XCode 7.3.

Upvotes: 0

Related Questions