I migrated from iphoneOS3.1.2.sdk to iphoneOS4.0.sdk and had to re-reference all frameworks.
The old OpenAL reference is getting stuck in the build script as I see the new one but the old one is also there:
Ld build/Debug-iphonesimulator/AweTrainGameEngine.app/AweTrainGameEngine normal i386
cd /Users/yuri/Desktop/AweTrainGameEngine
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk -L/Users/yuri/Desktop/AweTrainGameEngine/build/Debug-iphonesimulator -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/usr/lib -F/Users/yuri/Desktop/AweTrainGameEngine/build/Debug-iphonesimulator -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/System/Library/Frameworks/OpenAL.framework -F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks -F/Users/yuri/Desktop/AweTrainGameEngine -filelist /Users/yuri/Desktop/AweTrainGameEngine/build/AweTrainGameEngine.build/Debug-iphonesimulator/AweTrainGameEngine.build/Objects-normal/i386/AweTrainGameEngine.LinkFileList -mmacosx-version-min=10.6 -ObjC -all_load -Xlinker -objc_abi_version -Xlinker 2 -lxml2 -framework AudioToolbox -framework Foundation -framework QuartzCore -framework AVFoundation -framework UIKit -framework CoreGraphics -framework OpenAL -o /Users/yuri/Desktop/AweTrainGameEngine/build/Debug-iphonesimulator/AweTrainGameEngine.app/AweTrainGameEngine
I have searched thoroughly for manually cleaning up of the PATH environmental variable of Xcode but found nothing of value. I can't locate ~/.MacOSX/environment.plist on my snow leopard 10.6.3 system.
Please help!
Related
I don't understand my error:
Ld
Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/Test.app/Test
normal i386
cd /Users/lol/Desktop/Test
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2
-arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
-L/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator
-L/Users/lol/Desktop/Test -F/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator
-filelist /Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Intermediates/Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/Test.LinkFileList
-mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -lextThree20JSON+SBJSON /Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/libThree20UICommon.a
/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/libThree20.a
/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/libThree20UINavigator.a
/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/libThree20Core.a
/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/libThree20UI.a
/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/libThree20Network.a
/Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/libThree20Style.a
-framework SystemConfiguration -framework MobileCoreServices -framework CFNetwork -framework AddressBook -framework AddressBookUI -framework QuartzCore -framework UIKit -framework Foundation -framework MessageUI -framework CoreGraphics -lz.1.2.3 -lxml2.2.7.3 -o /Users/lol/Library/Developer/Xcode/DerivedData/Test-aywxyvnakaqhmwfbwellynwqmoik/Build/Products/Debug-iphonesimulator/Test.app/Test
ld: library not found for -lz.1.2.3
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
Can you help me to understand this?
Thanks a lot ;)
The option -lz.1.2.3 means that the compiler is attempting to link the file libz.1.2.3.a, libz.1.2.3.so, or libz.1.2.3.dylib. It cannot find any of these variations and is failing because of that.
You can attempt to find the location of this file and include it in your library include path.
My question is why are you linking a specific version of z lib? Usually, it's good enough to just have -lz or -llibz.dylib. Do you have a reason for picking a specific version? What happens when you link using the un-versioned name.
Just use -lz, there's no need to use the versioned link to it. So remove libz-1.2.3.tbd from frameworks and add libz.tbd.
In the project navigator, select your project.
Select your target.
Select the "Build Phases" tab.
Open "Link Binaries With Libraries" expander.
Remove libz-1.2.3.tbd
Click the + button.
Add libz.tbd
Can Any one Tell me how to solve this Error...
My X-Code is Version 4.2.
My IOS Simulator is Version 5.0
Ld build/Debug-iphonesimulator/M3DFree.app/M3DFree normal i386
cd "/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk "-L/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Debug-iphonesimulator" "-F/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Debug-iphonesimulator" -filelist "/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Match3D.build/Debug-iphonesimulator/Match3DFree.build/Objects-normal/i386/M3DFree.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 AppController.m -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=30200 -framework GameKit -lsqlite3.0 -framework StoreKit -framework MediaPlayer -framework AudioToolbox -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -o "/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Debug-iphonesimulator/M3DFree.app/M3DFree"
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
The error mentions something about
D__IPHONE_OS_VERSION_MIN_REQUIRED=30200
Which is a reference to iOS 3.2 (the first iPad OS). Check your build target and make sure that you are building for iOS 5 and that the deployment target is 4.3 or above.
If that doesn't help then it's probably just "one of those Xcode bugs" and doing a clean build, resetting your simulator, clearing your project cache and rebooting your Mac will probably fix it.
I'm trying to create a project utilizing both MailChimp and ShareKit code.
I believe I'm dynamically linking to them both by dragging their Xcode project files into my new project, then dragging and dropping the desired groups.
The problem I'm having now is that they both use a file name called SBJSonParser from their JSON libraries.
I'm getting an error that says:
ld: duplicate symbol _OBJC_CLASS_$_SBJsonParser
I don't want / don't think renaming the files would be sufficient, as there are quite a few more filenames they have in common. Does anyone have ideas on what to do? Thanks
Full error:
Ld /Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Products/Debug-iphonesimulator/PolaroidMe.app/PolaroidMe normal i386
cd /Users/user/Documents/PolaroidMe
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Products/Debug-iphonesimulator -F/Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Products/Debug-iphonesimulator -filelist /Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Intermediates/PolaroidMe.build/Debug-iphonesimulator/PolaroidMe.build/Objects-normal/i386/PolaroidMe.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework CoreLocation -framework Twitter -framework CFNetwork -framework SystemConfiguration -framework Security -framework MessageUI -framework AVFoundation -framework MobileCoreServices -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Products/Debug-iphonesimulator/PolaroidMe.app/PolaroidMe
ld: duplicate symbol _OBJC_CLASS_$_SBJsonParser in /Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Intermediates/PolaroidMe.build/Debug-iphonesimulator/PolaroidMe.build/Objects-normal/i386/SBJsonParser-7C0C46CE63D45CA3.o and /Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Intermediates/PolaroidMe.build/Debug-iphonesimulator/PolaroidMe.build/Objects-normal/i386/SBJsonParser-227BA1E6AFC01E91.o for architecture i386
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
ld: duplicate symbol _OBJC_CLASS_$_SBJsonParser in /Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Intermediates/PolaroidMe.build/Debug-iphonesimulator/PolaroidMe.build/Objects-normal/i386/SBJsonParser-7C0C46CE63D45CA3.o and /Users/user/Library/Developer/Xcode/DerivedData/PolaroidMe-gvmchgayobqfebhcnhfwhxoueaeo/Build/Intermediates/PolaroidMe.build/Debug-iphonesimulator/PolaroidMe.build/Objects-normal/i386/SBJsonParser-227BA1E6AFC01E91.o for architecture i386
SBJSON is a library, it only needs to be inside your project once. Just delete one of them.
I got this error message below:
Ld /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/iFly.app/iFly normal i386
cd /Users/kIT98K/proooo2/VPN38/iFly
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator -F/Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator -filelist /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Intermediates/iFly.build/Debug-iphonesimulator/iFly.build/Objects-normal/i386/iFly.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lxml2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -lxml2 -framework Security -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/RestKit/RestKit /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/libRestKit.a -o /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/iFly.app/iFly
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
I try to use xcodebuild -target to build for more info,
Ld build/Release-iphoneos/iFly.app/iFly normal armv7
cd /Users/kIT98K/proooo2/VPN38/iFly
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/kIT98K/proooo2/VPN38/iFly/build/Release-iphoneos -F/Users/kIT98K/proooo2/VPN38/iFly/build/Release-iphoneos -filelist /Users/kIT98K/proooo2/VPN38/iFly/build/iFly.build/Release-iphoneos/iFly.build/Objects-normal/armv7/iFly.LinkFileList -dead_strip -ObjC -lxml2 -miphoneos-version-min=4.3 -lxml2 -framework Security -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics /Users/kIT98K/proooo2/VPN38/iFly/RestKit/build/Release/RestKit.framework/RestKit /Users/kIT98K/proooo2/VPN38/iFly/RestKit/build/Release-iphoneos/libRestKit.a -o /Users/kIT98K/proooo2/VPN38/iFly/build/Release-iphoneos/iFly.app/iFly
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1
** BUILD FAILED **
The following build commands failed:
Ld build/Release-iphoneos/iFly.app/iFly normal armv7
(1 failure)
Please help, been on this for a week searching everywhere before this message.
thanks.
Choose your build target and in "Build Phases" -> "Target Dependencies", add the project you used (which I guess is RestKit) to the list.
I've solved the problem through the site https://github.com/RestKit/RestKit/wiki/Installation-Troubleshooting .
Im getting the below build errors after reassociating all of the 'cocos2d sources' files into my project to update it from 0.99.0 to 0.99.3. Any clues what might be causing this or do I have to create a new project with the appropriate template and associate the proper files into the new project?
PS. I am not upgrading to the newest version as it requires Lion or an Apple developer license which I have not yet procured.
Building target “Puzzle” of project “Puzzle” with configuration “Debug”
Checking Dependencies
Ld "/Users/Sup3rpanda/Dev/My Projects/Builds/Debug-iphonesimulator/Puzzle.app/Puzzle" normal i386
cd "/Users/Sup3rpanda/Dev/My Projects/Puzzle"
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk "-L/Users/Sup3rpanda/Dev/My Projects/Builds/Debug-iphonesimulator" "-F/Users/Sup3rpanda/Dev/My Projects/Builds/Debug-iphonesimulator" -filelist "/Users/Sup3rpanda/Dev/My Projects/Builds/Puzzle.build/Debug-iphonesimulator/Puzzle.build/Objects-normal/i386/Puzzle.LinkFileList" -mmacosx-version-min=10.5 -all_load -ObjC -framework CoreGraphics -framework Foundation -framework OpenGLES -framework QuartzCore -framework UIKit -framework AudioToolbox -framework OpenAL -lz -framework AVFoundation "-lcocos2d libraries" -o "/Users/Sup3rpanda/Dev/My Projects/Builds/Debug-iphonesimulator/Puzzle.app/Puzzle"
ld: library not found for -lcocos2d libraries
collect2: ld returned 1 exit status
Weird, there was a 'libcocos2d.a' being built as a target. Removing that allowed me to successfully build again.
http://www.cocos2d-iphone.org/forum/topic/3384