I'm using xCode 4.6.3 and just tried my first T1 build for our app. The build has failed with some ugly errors. It says that it is ignoring the FacebookSDK becase the file was not built for the architecture being linked (i386).
Here's the big old error report. Anyone have a clue?
Has anyone successfully build a T1 project with 10819 in xCode?
Thanks!
CompileC Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/Core.o Classes/Core.m normal i386 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage
setenv LANG en_US.US-ASCII
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 -x objective-c++ -arch i386 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DIDE_XCODE -DAGKIOS -DDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.1 -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Wordspionage.hmap -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/libxml2 -I../../platform/apple/Source -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/DerivedSources/i386 -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/DerivedSources -F/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Products/Debug "-F../../platform/apple/Source/Social Plugins/FacebookSDK" -include /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/PrecompiledHeaders/agkinterpreter_Prefix-hebasrcpypuyowhaukojgactkgcr/agkinterpreter_Prefix.pch -MMD -MT dependencies -MF /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/Core.d --serialize-diagnostics /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/Core.dia -c /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Classes/Core.m -o /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/Core.o
In file included from /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Classes/Core.m:8:
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/CoreForApp.h:106:24: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
LPSTR pIncludeFile = "";
^
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/CoreForApp.h:118:51: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
if ( pIncludeFile && strcmp ( pIncludeFile, "" )==NULL )
~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~~~
2 warnings generated.
CompileC Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/interpreter.o ../interpreter/interpreter.cpp normal i386 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage
setenv LANG en_US.US-ASCII
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 -x objective-c++ -arch i386 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DIDE_XCODE -DAGKIOS -DDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.1 -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Wordspionage.hmap -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/libxml2 -I../../platform/apple/Source -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/DerivedSources/i386 -I/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/DerivedSources -F/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Products/Debug "-F../../platform/apple/Source/Social Plugins/FacebookSDK" -include /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/PrecompiledHeaders/agkinterpreter_Prefix-hebasrcpypuyowhaukojgactkgcr/agkinterpreter_Prefix.pch -MMD -MT dependencies -MF /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/interpreter.d --serialize-diagnostics /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/interpreter.dia -c /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp -o /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/interpreter.o
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:356:48: warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]
if ( strcmp ( g_pInterpreterByteCodeFile, "" )==NULL )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~~~
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:427:9: warning: unused variable 'dwAgkCommandsVersion' [-Wunused-variable]
DWORD dwAgkCommandsVersion = AGKCOMMANDSVERSION;
^
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:490:8: warning: unused variable 'dwSizeOfOneInstructionSlot' [-Wunused-variable]
DWORD dwSizeOfOneInstructionSlot = sizeof(sByteCode);
^
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:1847:35: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if ( dwLatestArrayOffset < 0 || dwLatestArrayOffset >= pdwHeaderDimSize[9] )
~~~~~~~~~~~~~~~~~~~ ^ ~
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:1948:17: warning: unused variable 'lee' [-Wunused-variable]
int lee=42;
^
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:2357:34: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
if ( pSrcStr==NULL ) pSrcStr="";
^
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:2369:6: warning: add explicit braces to avoid dangling else [-Wdangling-else]
else
^
/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../interpreter/interpreter.cpp:3460:30: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if ( dwLatestArrayOffset < 0 || dwLatestArrayOffset >= pdwHeaderDimSize[9] )
~~~~~~~~~~~~~~~~~~~ ^ ~
8 warnings generated.
Ld Build/Products/Debug/Wordspionage.app/Wordspionage normal i386
cd /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage
setenv IPHONEOS_DEPLOYMENT_TARGET 5.1
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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Products/Debug -L/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../../platform/apple/Lib/Release "-L/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../../platform/apple/Source/Social Plugins/GoogleAdMobAdsSDK" "-L/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/../../platform/apple/Source/Social Plugins/Twitter+OAuth" -F/Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Products/Debug "-F../../platform/apple/Source/Social Plugins/FacebookSDK" -filelist /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Intermediates/agkinterpreter.build/Debug-iphonesimulator/agk_interpreter.build/Objects-normal/i386/Wordspionage.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.1 -weak_framework GameKit -weak_framework AdSupport -weak_framework StoreKit -framework FacebookSDK -lsqlite3 -framework CoreMedia -framework MediaPlayer -lGoogleAdMobAds -lOAuth -lxml2 -framework SystemConfiguration -framework MessageUI -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework CoreGraphics -framework AVFoundation -framework OpenAL -framework AudioToolbox -lAGKiOS -o /Users/manns41078/Desktop/AGK10819/IDE/apps/wordspionage/Build/Products/Debug/Wordspionage.app/Wordspionage
ld: warning: ignoring file ../../platform/apple/Source/Social Plugins/FacebookSDK/FacebookSDK.framework/FacebookSDK, file was built for unsupported file format ( 0x6c 0x69 0x6e 0x6b 0x20 0x2e 0x2f 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x73 0x2f ) which is not the architecture being linked (i386): ../../platform/apple/Source/Social Plugins/FacebookSDK/FacebookSDK.framework/FacebookSDK
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in libAGKiOS.a(SocialPlugins.o)
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in libAGKiOS.a(SocialPlugins.o)
"_OBJC_CLASS_$_Facebook", referenced from:
objc-class-ref in libAGKiOS.a(SocialPlugins.o)
"_OBJC_CLASS_$_SBJSON", referenced from:
objc-class-ref in libAGKiOS.a(SocialPlugins.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
EDIT
Well that turned out to be a bit too ugly for a code snippet... I've attached the report as a txt file.
EDIT 2: derp... hold up I forgot to delete the facebookk sdk source and re-extract it....