Migrated project to Xcode 7, now missing Simulator Frameworks?
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
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/Frameworksto
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/FrameworksIn your framework search path change:
$(SDKROOT)/Developer/Library/Frameworksto:$(PLATFORM_DIR)/Developer/Library/FrameworksEdit: add further detail.
You'd think Xcode 7 would automatically make these changes!
So you expect xcode to make your project not work anymore on Xcode 6 if you are just testing it ?
"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.
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.
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!
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.
This worked. Thanks!
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.