Xcode 5 Framework/Library Search Path Absolute Add

2019-01-22 12:02发布

I updated my Xcode to 5.0. I added some library/framework search paths and the path it's displaying is the absolute path. For example, if my folder is in my desktop it would display /Users/username/Desktop/"foldername"/"subfolder"/"subfolder"/"framework". Because of this, whenever I check out a working copy in another mac, I have to remove references to certain libraries/frameworks and add them back in. Isn't there a way to fix it where I don't have to remove-add reference again?

6条回答
放荡不羁爱自由
2楼-- · 2019-01-22 12:04

I was able to solve the same problem with the latest Xcode (v5.1), add this to the Library Search Paths in Build Settings and make sure you select recursive, delete other library paths which might be absolute paths.

$(PROJECT_DIR)                     recursive
查看更多
走好不送
3楼-- · 2019-01-22 12:07

The best way to add in a folder full of files, when you drag it into your project, is to make certain the "Copy Items Into Destination Folder" checkbox is checked to on.

use that handy checkbox

Then you'll avoid the trouble you've just found yourself in.

查看更多
劳资没心,怎么记你
4楼-- · 2019-01-22 12:23

Like I mentioned in this answer:

Well I faced the same issue and $(SRCROOT) didn't help. Here's the fix that worked for me. Go to framework search paths. Delete whatever is there and add ./ and make it recursive.

查看更多
聊天终结者
5楼-- · 2019-01-22 12:23

1- Add $(SRCROOT) in Framework Search Paths and make it recursive.

2- If the previous step is not worked, go to Copy Bundle Resources and delete ArcGIS.bundle and then add it again.

查看更多
劳资没心,怎么记你
6楼-- · 2019-01-22 12:26

Here's what i did:
$(SRCROOT)/"subfolder"/"subfolder"/"framework"
This is what we're using before in previous Xcode versions. The reason why it wasn't working with Xcode5 is because; for some reason, whenever you add another framework to your project, it automatically adds a "\" so you need to remove those to make it work. I don't know why it does that.

查看更多
Fickle 薄情
7楼-- · 2019-01-22 12:27

Copied and pasted ~/Library/SDKs/ArcGIS/iOS/ArcGIS.framework directly into /Developer/Frameworks.

App still isn't compiling, but I think this solved my issue here.

查看更多
登录 后发表回答