kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 474 forks source link

Apple Mach-O Linker Error When adding framework #196

Open ozansabrican opened 9 years ago

ozansabrican commented 9 years ago

Hi I created my custom framework by using yours but when I add my framework to the project it gives me this error when my target is 7.1:

Ld /Users/ozans/Library/Developer/Xcode/DerivedData/BugFixProject-fzjcsjuuscocrogonioflplgfqbq/Build/Products/Debug-iphonesimulator/BugFixProject.app/BugFixProject normal i386 cd /Users/ozans/Documents/xCodeDeneme/Quiz/BugFixProject export IPHONEOS_DEPLOYMENT_TARGET=7.1 export 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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/ozans/Library/Developer/Xcode/DerivedData/BugFixProject-fzjcsjuuscocrogonioflplgfqbq/Build/Products/Debug-iphonesimulator -F/Users/ozans/Library/Developer/Xcode/DerivedData/BugFixProject-fzjcsjuuscocrogonioflplgfqbq/Build/Products/Debug-iphonesimulator -F/Users/ozans/Documents/xCodeDeneme/Quiz/BugFixProject/MyFrameworks -filelist /Users/ozans/Library/Developer/Xcode/DerivedData/BugFixProject-fzjcsjuuscocrogonioflplgfqbq/Build/Intermediates/BugFixProject.build/Debug-iphonesimulator/BugFixProject.build/Objects-normal/i386/BugFixProject.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework CoreData -framework MyFoundation -framework CoreGraphics -framework MyNetwork -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/ozans/Library/Developer/Xcode/DerivedData/BugFixProject-fzjcsjuuscocrogonioflplgfqbq/Build/Intermediates/BugFixProject.build/Debug-iphonesimulator/BugFixProject.build/Objects-normal/i386/BugFixProject_dependency_info.dat -o /Users/ozans/Library/Developer/Xcode/DerivedData/BugFixProject-fzjcsjuuscocrogonioflplgfqbq/Build/Products/Debug-iphonesimulator/BugFixProject.app/BugFixProject

ld: in /Users/ozans/Documents/xCodeDeneme/Quiz/BugFixProject/MyFrameworks/MyFoundation.framework/MyFoundation(MyFoundation), too many compact unwind infos in function anon for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have a workaround that if I use 6.0 for Deployment Target but we want to work with this framework in also 7.1 so do you have any solutions that I can use.

Thanks inadvance.

-so