0
votes

I am new to iPhone development and to XCode. I'm getting ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386 when I try and run my project on a simulator. I've tried linking frameworks in my XCode project, but I can't see them added to the framework search path, only as in the screenshot below:

http://i.imgur.com/HrPmZOC.png

1
check you Linked Frameworks under Build Settings for your Tests target in Xcode. You should be able to remove the bad framework link there.Siriss
Sorry I still don't know how to do that. I've tried going through the menus, and can't find one that says Build Settings.Michael Nares
Click on your Main Project in the left column, Under Targets, select YourProjectTest. Make sure the All selector is selected on the top (there is Basic and All). Search for Framework Search Paths.Siriss
Ok got there, but still unsure of what to replace $(SDKROOT)/Developer/Library/Frameworks $(DEVELOPER_LIBRARY_DIR)/Frameworks $(DEVELOPER_FRAMEWORKS_DIR) with.Michael Nares
I.e. what to replace the placeholders with. I currently have DEVELOPER_FRAMEWORKS_DIR as /Applications/XCode.app/Contents/Developer/Library/Frameworks/Applications/XCode.app/Contents/Developer/Library/FrameworksMichael Nares

1 Answers

0
votes

Check your Build Phases -> Linked Binary With Libraries of your MyProjectTests. They can be found here: enter image description here

enter image description here