Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Cannot build archive "error: -fobjc-arc is not supported on platforms using the legacy runtime" #100

Open
ghost opened this issue Jul 31, 2013 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Jul 31, 2013

/PrecompiledHeaders/Rebel-Prefix-elkrncaafhxcmjgxesrfmxwglhie/Rebel-Prefix.pch.pth Rebel/Rebel-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/Store/Projects/ccPing/ccPing OS X/Rebel"
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Werror -Wmissing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wfour-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNDEBUG=1 -DNS_BLOCK_ASSERTIONS=1 -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.7 -Wno-sign-conversion -iquote /Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/IntermediateBuildFilesPath/Rebel.build/Release/Rebel.build/Rebel-generated-files.hmap -I/Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/IntermediateBuildFilesPath/Rebel.build/Release/Rebel.build/Rebel-own-target-headers.hmap -I/Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/IntermediateBuildFilesPath/Rebel.build/Release/Rebel.build/Rebel-all-target-headers.hmap -iquote /Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/IntermediateBuildFilesPath/Rebel.build/Release/Rebel.build/Rebel-project-headers.hmap -I/Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/BuildProductsPath/Release/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/IntermediateBuildFilesPath/Rebel.build/Release/Rebel.build/DerivedSources/i386 -I/Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/IntermediateBuildFilesPath/Rebel.build/Release/Rebel.build/DerivedSources -Wno-gcc-compat -F/Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/BuildProductsPath/Release --serialize-diagnostics /Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/PrecompiledHeaders/Rebel-Prefix-elkrncaafhxcmjgxesrfmxwglhie/Rebel-Prefix.pch.dia -c "/Volumes/Store/Projects/ccPing/ccPing OS X/Rebel/Rebel/Rebel-Prefix.pch" -o /Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/PrecompiledHeaders/Rebel-Prefix-elkrncaafhxcmjgxesrfmxwglhie/Rebel-Prefix.pch.pth -MMD -MT dependencies -MF /Users/xcodev/Library/Developer/Xcode/DerivedData/ccPing-dwhjstpzfibytxbypacokcdgaceo/Build/Intermediates/ArchiveIntermediates/ccPing/PrecompiledHeaders/Rebel-Prefix-elkrncaafhxcmjgxesrfmxwglhie/Rebel-Prefix.pch.d

error: -fobjc-arc is not supported on platforms using the legacy runtime
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Xcode 4.6.1
Mac OS X 10.8.3
Build debug: fine
Build to archive: Failed

Please help

@joshaber
Copy link
Contributor

joshaber commented Aug 1, 2013

It sounds like you need to do script/bootstrap

@ghost
Copy link
Author

ghost commented Aug 1, 2013

Date/Time: 2013-08-01 10:16:32.454 +0700
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9

Interval Since Last Report: 97619 sec
Crashes Since Last Report: 7
Per-App Interval Since Last Report: 49983 sec
Per-App Crashes Since Last Report: 5
Anonymous UUID: 43367009-7ABA-45B4-BC99-5C66DEC24721

Crashed Thread: 0

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Library not loaded: @rpath/Rebel.framework/Rebel
Referenced from: /Users/USER/Downloads/ccPing.app/Contents/MacOS/ccPing
Reason: image not found

Could you show me a demo ?

@joshaber
Copy link
Contributor

joshaber commented Aug 1, 2013

That looks like you're either missing the xcconfigs (which git submodule update --recursive --init will get for you), or the Rebel framework isn't being copied into the app's Frameworks directory within its bundle.

@ghost
Copy link
Author

ghost commented Aug 9, 2013

thanks joshaber, I will try agains

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant