Error when converting to Xcode

Hi all and specifically those who have already uploaded games to Xcode and then to the App Store: I am having troubles when I put my project into Xcode (i exported as Xcode file from Codea and then put it onto my computer) and I keep getting this error that I have been trying to fix but I cannot figure out how to fix it…

gunzip: /Users/Kyle/Desktop/AirHockey/Libs/libtools.a.gz: not in gzip format Command /bin/sh failed with exit code 1

Hmm it looks like it might be an error that started since we migrated our server to SSL. Are you able to download and extract the files manually from here:

https://codea.io/lib/libcodea-2.3.2.a.gz

https://codea.io/lib/libtools-2.3.2.a.gz

Rename them to libcodea.a and libtools.a, put them in your Libs folder.

@simeon thanks so much for the help! It seems to work but then I encountered another problem… I have no clue if the errors are related but this is what it gave me:

CompileC /Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/Objects-normal/arm64/main.o AirHockey/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/Kyle/Desktop/AirHockey
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -gmodules -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wno-bool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=7.0 -g -Wno-sign-conversion -fprofile-instr-use=/Users/Kyle/Desktop/AirHockey/OptimizationProfiles/AirHockey.profdata -fembed-bitcode-marker -iquote /Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/AirHockey-generated-files.hmap -I/Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/AirHockey-own-target-headers.hmap -I/Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/AirHockey-all-target-headers.hmap -iquote /Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/AirHockey-project-headers.hmap -I/Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Products/Debug-iphoneos/include -I/Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/DerivedSources/arm64 -I/Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/DerivedSources -F/Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Products/Debug-iphoneos -include /Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/PrecompiledHeaders/AirHockey-Prefix-exfivsxgsikqhobsvsowtovhddfc/AirHockey-Prefix.pch -MMD -MT dependencies -MF /Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/Objects-normal/arm64/main.d --serialize-diagnostics /Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/Objects-normal/arm64/main.dia -c /Users/Kyle/Desktop/AirHockey/AirHockey/main.m -o /Users/Kyle/Library/Developer/Xcode/DerivedData/AirHockey-ekvdzgkgkoynyvadywzhgnhtmlye/Build/Intermediates/AirHockey.build/Debug-iphoneos/AirHockey.build/Objects-normal/arm64/main.o

error: Could not read profile: No such file or directory
1 error generated.

Here is what stack overflow says on the “error: Could not read profile…” message:

http://stackoverflow.com/questions/27480316/archive-apple-llvm-6-0-error-could-not-read-profile

Thank you so much!!! @Simeon I got it! I will post a link in a while when I am able to finish everything and get it onto the App Store

@Simeon , I am receiving the same error here:

gunzip: /Projects/Informatica/Software/Vein Camera/VeinCamera 3/Libs/libcodea.a.gz: not in gzip format
note: Downloading Tools Library…
gunzip: /Projects/Informatica/Software/Vein Camera/VeinCamera 3/Libs/libtools.a.gz: not in gzip format
Command /bin/sh failed with exit code 1

I downloaded the files here, and did what you asked, but now I get different warnings:

ld: warning: ignoring file /Projects/Informatica/Software/Vein Camera/VeinCamera 3/Libs/libcodea.a, file was built for unsupported file format ( 0x3C 0x21 0x44 0x4F 0x43 0x54 0x59 0x50 0x45 0x20 0x48 0x54 0x4D 0x4C 0x20 0x50 ) which is not the architecture being linked (arm64): /Projects/Informatica/Software/Vein Camera/VeinCamera 3/Libs/libcodea.a
ld: warning: ignoring file/Projects/Informatica/Software/Vein Camera/VeinCamera 3/Libs/libtools.a, file was built for unsupported file format ( 0x3C 0x21 0x44 0x4F 0x43 0x54 0x59 0x50 0x45 0x20 0x48 0x54 0x4D 0x4C 0x20 0x50 ) which is not the architecture being linked (arm64): /Projects/Informatica/Software/Vein Camera/VeinCamera 3/Libs/libtools.a

Then the following errors:
Undefined symbols for architecture arm64:
“_lua_setglobal”, referenced from:
-[iAdsAddon codea:didCreateLuaState:] in iAdsAddon.o
“_lua_pushcclosure”, referenced from:
-[iAdsAddon codea:didCreateLuaState:] in iAdsAddon.o
“_luaL_checknumber”, referenced from:
_gamecenter_submitScore in GameCenterAddon.o
_gamecenter_submitAchievement in GameCenterAddon.o
“_luaL_checklstring”, referenced from:
_gamecenter_showLeaderboards in GameCenterAddon.o
_gamecenter_submitScore in GameCenterAddon.o
_gamecenter_submitAchievement in GameCenterAddon.o
“_lua_settop”, referenced from:
-[GameCenterAddon codea:didCreateLuaState:] in GameCenterAddon.o
“_lua_createtable”, referenced from:
_luaopen_gamecenter in GameCenterAddon.o
OBJC_CLASS$_StandaloneCodeaViewController”, referenced from:
objc-class-ref in AppDelegate.o
“_lua_gettop”, referenced from:
_gamecenter_showLeaderboards in GameCenterAddon.o
_gamecenter_submitScore in GameCenterAddon.o
_gamecenter_submitAchievement in GameCenterAddon.o
“_lua_pushboolean”, referenced from:
_gamecenter_enabled in GameCenterAddon.o
“_luaL_setfuncs”, referenced from:
_luaopen_gamecenter in GameCenterAddon.o
“_luaL_requiref”, referenced from:
-[GameCenterAddon codea:didCreateLuaState:] in GameCenterAddon.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can you help??? Thanks in advance