Re: Can't build simple XCTest target
Re: Can't build simple XCTest target
- Subject: Re: Can't build simple XCTest target
- From: Damian Carrillo <email@hidden>
- Date: Wed, 12 Feb 2014 22:24:42 -0600
I may have encountered something similar, but I am not positive. When I had a third party OS X library that I added an iOS target for, I had to clear the Bundle Loader build property for the iOS target.
On Feb 12, 2014, at 9:39 PM, 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