Re: Can't build simple XCTest target
Re: Can't build simple XCTest target
- Subject: Re: Can't build simple XCTest target
- From: Joar Wingfors <email@hidden>
- Date: Wed, 12 Feb 2014 21:42:12 -0800
Rick,
Check the "General" tab of the test target and make sure that the Target pop-up is either set to an iOS App target, or to "none".
If you can't resolve your issue, please send your project - or preferably a reduced sample project that shows the same issue - to me and I'll take a look.
Joar
On 12 feb 2014, at 19:39, Rick Mann <email@hidden> wrote:
> I have a project that had an OS X test target in it. I added an iOS Cocoa Touch test target to it, but when it builds, it gets the following error:
>
> lld: 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
>
>
> Searching some people suggested the framework search paths were wrong, but I've got (the inherited paths are empty):
>
> FRAMEWORK_SEARCH_PATHS = $(SDKROOT)/Developer/Library/Frameworks $(inherited) $(DEVELOPER_FRAMEWORKS_DIR)
>
> The build invocation is:
>
> Ld /Users/rmann/Library/Developer/Xcode/DerivedData/Common-dfcxpijcpgcllfhdehkwffpljlsr/Build/Products/Debug-iphonesimulator/Tests.xctest/Tests normal i386
> cd /Users/rmann/Projects/Clients/Matterport/repo/trunk/iOS/Controller/lib/LZCommon/src/Xcode
> setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
> setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/rmann/Library/Developer/Xcode/DerivedData/Common-dfcxpijcpgcllfhdehkwffpljlsr/Build/Products/Debug-iphonesimulator -F/Users/rmann/Library/Developer/Xcode/DerivedData/Common-dfcxpijcpgcllfhdehkwffpljlsr/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/rmann/Library/Developer/Xcode/DerivedData/Common-dfcxpijcpgcllfhdehkwffpljlsr/Build/Intermediates/Common.build/Debug-iphonesimulator/Tests.build/Objects-normal/i386/Tests.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libc++ -mios-simulator-version-min=7.0 -lz -framework SystemConfiguration -framework UIKit -framework XCTest -Xlinker -dependency_info -Xlinker /Users/rmann/Library/Developer/Xcode/DerivedData/Common-dfcxpijcpgcllfhdehkwffpljlsr/Build/Intermediates/Common.build/Debug-iphonesimulator/Tests.build/Objects-normal/i386/Tests_dependency_info.dat -o /Users/rmann/Library/Developer/Xcode/DerivedData/Common-dfcxpijcpgcllfhdehkwffpljlsr/Build/Products/Debug-iphonesimulator/Tests.xctest/Tests
>
>
>
> Any idea what else I can try?
>
> --
> Rick
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden