callback/callback-ios — Issue #15: Problem with PhoneGap 1.2.0 & Xcode 3.2.6
Author: DAnn2012
Created: 2011-11-15 21:41:00+00:00
State: open

Hello,
after updating PhoneGap from version 1.1.0 to version 1.2.0, when
compiling with Xcode 3.2.6 (Mac OS X 10.6.8) in Release mode it
returns this error:

Ld build/TestPG.build/Distribution-iphoneos/TestPG.build/Objects-
normal/armv7/TestPG normal armv7
cd /Users/dann/Documents/TestPG
setenv IPHONEOS_DEPLOYMENT_TARGET 3.0
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/
Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -
arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/
SDKs/iPhoneOS4.3.sdk -L/Users/dann/Documents/TestPG/build/Distribution-
iphoneos -F/Users/dann/Documents/TestPG/build/Distribution-iphoneos -
filelist /Users/dann/Documents/TestPG/build/TestPG.build/Distribution-
iphoneos/TestPG.build/Objects-normal/armv7/TestPG.LinkFileList -
dead_strip -weak_framework UIKit -weak_framework AVFoundation -
weak_framework CoreMedia -weak_library /usr/lib/libSystem.B.dylib -
all_load -Obj-C -miphoneos-version-min=3.0 /Users/dann/Documents/
PhoneGapLib/build/Release-iphoneos/libPhoneGap.a -framework Foundation
-weak_framework UIKit -framework CoreGraphics -framework AddressBook -
framework AddressBookUI -framework AudioToolbox -weak_framework
AVFoundation -framework CFNetwork -framework CoreLocation -framework
MediaPlayer -framework QuartzCore -framework SystemConfiguration -
framework MobileCoreServices -weak_framework CoreMedia -o /Users/dann/
Documents/TestPG/build/TestPG.build/Distribution-iphoneos/TestPG.build/
Objects-normal/armv7/TestPG

ld: warning: ignoring file /Users/dann/Documents/PhoneGapLib/build/
Release-iphoneos/libPhoneGap.a, file was built for archive which is
not the architecture being linked (armv7)
Undefined symbols for architecture armv7:
"_OBJC_METACLASS_$_PhoneGapDelegate", referenced from:
_OBJC_METACLASS_$_AppDelegate in AppDelegate.o
"_OBJC_CLASS_$_PhoneGapDelegate", referenced from:
_OBJC_CLASS_$_AppDelegate in AppDelegate.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status

Why? With version 1.1.0, I had to reinstall, had never occurred.

Thanks in advance.