简体   繁体   中英

How do I include a framework in my xcode project if I want to send it as zip

Sorry this is somewhat a silly question, but I could do with some help with this.

Basically my app uses various Google Frameworks (maps, places etc). But when I compress my project and send it it stops working. I've included all the frameworks in the root folder of my project, here's the errors i'm getting:

在此处输入图片说明

Now when I look in at the framework in the left panel of xcode, it appears like this:

在此处输入图片说明

The headers have gone!

Here's how it should look:

在此处输入图片说明

Why is this happening?

I believe this is because your framework's directory isn't referenced properly. Go to your target -> Build Setting -> Search Path -> Framework Search Path and fix it accordingly.

However I would recommend you use a package manager like cocoapods as it will allow others to download all the frameworks necessary separately, and also it will allow you to easily update the frameworks to its latest version.

在此处输入图片说明

Have you done this while adding the framework?(like the image added)

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