IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2011-07-12T05:14:34Z by IdanAdar
SystemAdmin
SystemAdmin
106 Posts

Pinned topic Builindg iOS app using Xcode 4.0

‏2011-07-07T22:08:51Z |
I have my WL Server setup and running. I am trying to run the first sample app. iPad environment set. I successfully sent my app for building from Eclipse to the WL Server.

The issue is when I open the .xcodeproj in XCode and try to run, I get the following error:
Build target PhoneGapWorkLightBasedApp of project HelloWorklight with configuration Debug

CompileC /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/Objects-normal/i386/unzip.o Classes/ZipArchive/minizip/unzip.c normal i386 c com.apple.compilers.gcc.4_2
cd "/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native"
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -fexceptions -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -fvisibility=hidden -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -iquote /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-generated-files.hmap -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-own-target-headers.hmap -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-all-target-headers.hmap -iquote /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-project-headers.hmap -iquotePhoneGapLib/Classes -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator/include -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/DerivedSources/i386 -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/DerivedSources -F/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator -DDEBUG -include /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/PrecompiledHeaders/PhoneGapWorkLightBasedApp_Prefix-dxzahbdxrtbisaeiuefzmebuabya/PhoneGapWorkLightBasedApp_Prefix.pch -c "/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/minizip/unzip.c" -o /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/Objects-normal/i386/unzip.o

/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/minizip/unzip.c: In function 'unzGetGlobalComment':
/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/minizip/unzip.c:1537: warning: unused variable 'err'

CompileC /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/Objects-normal/i386/ZipArchive.o Classes/ZipArchive/ZipArchive.mm normal i386 objective-c++ com.apple.compilers.gcc.4_2
cd "/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native"
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -fexceptions -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -iquote /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-generated-files.hmap -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-own-target-headers.hmap -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-all-target-headers.hmap -iquote /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/HelloWorklight-project-headers.hmap -iquotePhoneGapLib/Classes -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator/include -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/DerivedSources/i386 -I/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/DerivedSources -F/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator -DDEBUG -include /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/PrecompiledHeaders/PhoneGapWorkLightBasedApp_Prefix-dsopgyfrcsxyalbpcdegkzlpdfpw/PhoneGapWorkLightBasedApp_Prefix.pch -c "/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/ZipArchive.mm" -o /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/Objects-normal/i386/ZipArchive.o

/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/ZipArchive.mm: In function 'BOOL -ZipArchive addFileToZip:newname:(ZipArchive*, objc_selector*, NSString*, NSString*)':
/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/ZipArchive.mm:68: warning: 'fileAttributesAtPath:traverseLink:' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:162)
/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/ZipArchive.mm: In function 'BOOL -(ZipArchive*, objc_selector*, NSString*)':
/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/ZipArchive.mm:160: warning: format not a string literal and no format arguments
/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/ZipArchive.mm: In function 'BOOL -ZipArchive UnzipFileTo:overWrite:(ZipArchive*, objc_selector*, NSString*, BOOL)':
/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native/Classes/ZipArchive/ZipArchive.mm:210: warning: 'stringWithCString:' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:390)

Ld /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator/HelloWorklight.app/HelloWorklight normal i386
cd "/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator "-L/Users/bhashem/Documents/iOS Resources/Worklight Projects/HelloWorklightProj/apps/HelloWorklight/ipad/native" -F/Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator -filelist /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Intermediates/HelloWorklight.build/Debug-iphonesimulator/PhoneGapWorkLightBasedApp.build/Objects-normal/i386/HelloWorklight.LinkFileList -mmacosx-version-min=10.6 -force_load ./PHONEGAPLIB/build/Debug-iphonesimulator/libPhoneGapLib.a -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework AVFoundation -framework CFNetwork -framework CoreLocation -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator/libPhoneGapLib.a -framework CoreData -lz.1.2.3 -lsqlite3.0 -o /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-fzbpefuzcradeqgwxtcfemysxbly/Build/Products/Debug-iphonesimulator/HelloWorklight.app/HelloWorklight

ld: file not found: ./PHONEGAPLIB/build/Debug-iphonesimulator/libPhoneGapLib.a
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1
Sounds like it has to do with a path'ing problem related to PhoneGap. Any ideas?
(Including a png attachment since the above text is hard to parse)
  • IdanAdar
    IdanAdar
    40 Posts

    Re: Builindg iOS app using Xcode 4.0

    ‏2011-07-12T05:14:34Z  
    Hi bhashem,
    Sorry for the late reply!

    We did not manage to reproduce the error you have received. However, there seems to be something wrong with the application path. Note the highlighted text:
    /Users/bhashem/Library/Developer/Xcode/DerivedData/HelloWorklight-*fzbpefuzcradeqgwxtcfemysxbly*/Build/Products/Debug-iphonesimulator/HelloWorklight.app/HelloWorklight normal i386
    Is this an actual directory?

    Have you copied the Xcode project to a Mac machine? or are you perhaps using a network drive?
    If possible, could you please send us your application for a closer inspection? Please send it to support @worklight.com