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

arm64 Archive's don't link #187

Closed fuggly closed 9 years ago

fuggly commented 9 years ago

Hiyas

I have an application which uses two frameworks that were created with the iOS Universal Framework. So far this thing is a life saver ;-) However.. when I add arm64 as valid architecture, I can build them fine, both frameworks and the application build and link to a universal binary, but when I try to archive them (which, to me, should be basically the same), I get a wierd linker error in the final state og the first framework:

... export XPCSERVICES_FOLDER_PATH=RMTXKit.framework/Versions/A/XPCServices export YACC=yacc export arch=i386 export variant=normal /bin/sh -c \"/Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/ArchiveIntermediates/AdHoc\ Testflight/IntermediateBuildFilesPath/RMTXKit.build/AdHoc\ Testflight-iphonesimulator/RMTXKit.build/Script-98886461151381CE000270AC.sh\"

Touch /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/ArchiveIntermediates/AdHoc\ Testflight/BuildProductsPath/AdHoc\ Testflight-iphonesimulator/RMTXKit.framework cd /Users/misteli/dev/objc/iPhone/Libraries/RMTXKit export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/bin:/bin:/usr/sbin:/sbin" /usr/bin/touch -c /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/ArchiveIntermediates/AdHoc\ Testflight/BuildProductsPath/AdHoc\ Testflight-iphonesimulator/RMTXKit.framework

\ BUILD SUCCEEDED **

Create universal static library /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/ArchiveIntermediates/AdHoc Testflight/BuildProductsPath/AdHoc Testflight-iphoneos/RMTXKit.framework/Versions/A/RMTXKit /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/ArchiveIntermediates/AdHoc Testflight/BuildProductsPath/AdHoc Testflight-iphonesimulator/RMTXKit.framework/Versions/A/RMTXKit -o /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/ArchiveIntermediates/AdHoc Testflight/BuildProductsPath/AdHoc Testflight-iphoneos/RMTXKit.framework/Versions/A/RMTXKit.temp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool: for architecture arm64 object: /Users/misteli/Library/Developer/Xcode/DerivedData/Gugus/Intermediates/ArchiveIntermediates/AdHoc Testflight/BuildProductsPath/AdHoc Testflight-iphoneos/RMTXKit.framework/Versions/A/RMTXKit(DBCredentials.o) malformed object (unknown load command 1) Showing first 200 notices only

does anyone have an idea what this is or how I can get rid of that and make it compilable / linkable with arm64 as well?

Thanks Rog

shsteven commented 9 years ago

encountered the same issue. @fuggly have u found a workaround?

shsteven commented 9 years ago

Found the fix: go to build settings -> Architectures and include arm64.

fuggly commented 9 years ago

@shsteven Nope.. tried that too, doesn't work. I got exactly the same error back :-(

fuggly commented 9 years ago

Nevermind, I created a completly new framework with the old sources, that seemed to work now