Migrated project to Xcode 7, now missing Simulator Frameworks?

Question

I just migrated my project from Xcode 6 to 7 After fixing all the 'do' 'try's, I compiled it and got this error:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'

Everything seems to run fine, but errors are no fun. Any advice on solving this?

Thanks in advance!

Posted Sep 17, 2015, 1:45 PM UTC

1011
zqwzzle•

This is occurring because the location of XCTest.framework has moved from the old path:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks

to

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks

In your framework search path change: $(SDKROOT)/Developer/Library/Frameworks to: $(PLATFORM_DIR)/Developer/Library/Frameworks

Edit: add further detail.

10
air6199•

You'd think Xcode 7 would automatically make these changes!

5
Power781•

So you expect xcode to make your project not work anymore on Xcode 6 if you are just testing it ?

2
air6199•

"Would you like to upgrade your project to Swift 2.0 and Xcode 7? Please note this breaks Xcode 6 compatibility, ensure you have a backup"

Something along these lines would help. The user can then keep a copy for Xcode 6 and a copy for Xcode 7.

3
glowcapOP•

Thanks for the reply. How do I change to framework search path? I checked stackoverflow, where many people have made similar suggestions, but no instructions on how to do so.

2
lesiva•

I just fixed it by doing the following:

Project -> ProjectTests on the Left -> Search Paths -> Framework Search Paths -> Double click on whatever is under the column ProjectTests and click on the one ending in 'Framework', and then the minus sign to remove it

Done!

4
glowcapOP•

Thanks for that. I was fumbling around until I found out how to switch to the project test.

You're instructions were a huge help. Thanks.

2
CQH•

This worked. Thanks!

1
glowcapOP•

Thank you very much. It worked perfectly. It seems that no matter how much I learn about Xcode, there's always a new headache... er, learning opportunity.

1
fathim•

Is it an error or a warning? For me it was a warning in the tests target. So to remove it I selected the test target -> build settings -> search paths -> framework search paths. Then removed the one ending in Frameworks.

3
CQH•

I'm getting the same on 2 computers for multiple apps.

1
[deleted]•

[deleted]

1