tidev / ti.admob

Use the Google AdMob SDK on iOS and Android with Titanium
52 stars 72 forks source link

Can't build app project with ti.admob 2.1.0 and Titanium 5.2.0 #55

Closed jamesdlow closed 8 years ago

jamesdlow commented 8 years ago

Hi,

I've been trying to use the ti.admob module with the current version of Titanium 5.2.0. My app project fails to build with the following error: [ERROR] : \ BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : Ld build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/x86_64/GearTube normal x86_64

I've also tried to build ti.admob from source using titanium 5.2.0. It builds, but the resulting module gives me the same error as your build.

Any ideas why this might be happening?

Thanks, James

jamesdlow commented 8 years ago

Looking at build_iphone.log It seems to not be able to find [TRACE] ld: framework not found GoogleMobileAds. I have tried moving the framework to Resources/ instead of platform/ as per the new module instructions for 5.2.0: http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Module_Project-section-43288810_iOSModuleProject-ProjectStructure

Here's the output of build_iphone.log

[TRACE] Ld build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/i386/GearTube normal i386 [TRACE] cd /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone [TRACE] export IPHONEOS_DEPLOYMENT_TARGET=7.1 [TRACE] export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/share/java/maven3/bin:/opt/subversion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/bin:/Volumes/Data/James/Documents/Programs/James/jamesdlow/Shell:/Applications/Android/tools:/Applications/AWS/RDS/bin:/Applications/AWS/IAMys/bin:/Applications/AWS/BS/bin:/Applications/AWS/R53/bin:/Applications/AWS/ELB/bin:/Applications/Eclipse/plugins/org.apache.ant_1.9.2.v201404171502/bin:/Applications/Google/gcutil/bin:/Applications/Google/appengine-java-sdk-1.9.5/bin" [TRACE] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Products/Debug-iphonesimulator -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/lib -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/Classes/APSAnalytics -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/Classes/APSHTTPClient -L/Library/Application\ Support/Titanium/modules/iphone/com.onoko.utils/0.7 -L/Library/Application\ Support/Titanium/modules/iphone/dk.napp.social/1.8.2 -L/Library/Application\ Support/Titanium/modules/iphone/com.deko.label/1.4 -L/Library/Application\ Support/Titanium/modules/iphone/com.intentionalapps.freshdesk/1.0 -L/Library/Application\ Support/Titanium/modules/iphone/ti.admob/2.1.1 -F/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Products/Debug-iphonesimulator -F/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/../../modules/iphone/ti.admob/2.1.0/platform -F/Volumes/Data/James/Library/Application\ Support/Titanium/modules/iphone/ti.admob/2.1.0/platform -filelist /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/i386/GearTube.LinkFileList -mios-simulator-version-min=7.1 -dead_strip -Xlinker -objc_abi_version -Xlinker 2 -ObjC -weak_framework Social -weak_framework Accounts -weak_framework Social -weak_framework Accounts -objC -framework CoreText -objC -framework CoreText -framework CoreData -framework CoreTelephony -framework CoreData -framework CoreTelephony -framework AdSupport -framework iAd -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreTelephony -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework GoogleMobileAds -framework AdSupport -framework iAd -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreTelephony -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework GoogleMobileAds -weak-lti_ios_profiler -weak-lti_ios_debugger -weak-lTiCore -weak_framework Contacts -weak_framework ContactsUI -weak_framework WatchConnectivity -weak_framework CoreSpotlight -fobjc-link-runtime -stdlib=libc++ -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/GearTube.app.xcent -weak_framework iAd -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lAPSHTTPClient -framework ExternalAccessory -ltiverify -lcom.onoko.utils -ldk.napp.social -lcom.deko.label -lcom.intentionalapps.freshdesk -lti.admob -Xlinker -dependency_info -Xlinker /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/i386/GearTube_dependency_info.dat -o /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/i386/GearTube [TRACE] ld: warning: directory not found for option '-F/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/../../modules/iphone/ti.admob/2.1.0/platform' [TRACE] ld: warning: directory not found for option '-F/Volumes/Data/James/Library/Application Support/Titanium/modules/iphone/ti.admob/2.1.0/platform' [TRACE] ld: framework not found GoogleMobileAds [TRACE]
[TRACE] Ld build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/x86_64/GearTube normal x86_64 [TRACE] cd /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone [TRACE] export IPHONEOS_DEPLOYMENT_TARGET=7.1 [TRACE] export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/share/java/maven3/bin:/opt/subversion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/bin:/Volumes/Data/James/Documents/Programs/James/jamesdlow/Shell:/Applications/Android/tools:/Applications/AWS/RDS/bin:/Applications/AWS/IAMys/bin:/Applications/AWS/BS/bin:/Applications/AWS/R53/bin:/Applications/AWS/ELB/bin:/Applications/Eclipse/plugins/org.apache.ant_1.9.2.v201404171502/bin:/Applications/Google/gcutil/bin:/Applications/Google/appengine-java-sdk-1.9.5/bin" [TRACE] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Products/Debug-iphonesimulator -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/lib -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/Classes/APSAnalytics -L/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/Classes/APSHTTPClient -L/Library/Application\ Support/Titanium/modules/iphone/com.onoko.utils/0.7 -L/Library/Application\ Support/Titanium/modules/iphone/dk.napp.social/1.8.2 -L/Library/Application\ Support/Titanium/modules/iphone/com.deko.label/1.4 -L/Library/Application\ Support/Titanium/modules/iphone/com.intentionalapps.freshdesk/1.0 -L/Library/Application\ Support/Titanium/modules/iphone/ti.admob/2.1.1 -F/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Products/Debug-iphonesimulator -F/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/../../modules/iphone/ti.admob/2.1.0/platform -F/Volumes/Data/James/Library/Application\ Support/Titanium/modules/iphone/ti.admob/2.1.0/platform -filelist /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/x86_64/GearTube.LinkFileList -mios-simulator-version-min=7.1 -dead_strip -Xlinker -objc_abi_version -Xlinker 2 -ObjC -weak_framework Social -weak_framework Accounts -weak_framework Social -weak_framework Accounts -objC -framework CoreText -objC -framework CoreText -framework CoreData -framework CoreTelephony -framework CoreData -framework CoreTelephony -framework AdSupport -framework iAd -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreTelephony -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework GoogleMobileAds -framework AdSupport -framework iAd -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreTelephony -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework GoogleMobileAds -weak-lti_ios_profiler -weak-lti_ios_debugger -weak-lTiCore -weak_framework Contacts -weak_framework ContactsUI -weak_framework WatchConnectivity -weak_framework CoreSpotlight -fobjc-link-runtime -stdlib=libc++ -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/GearTube.app.xcent -weak_framework iAd -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lAPSHTTPClient -framework ExternalAccessory -ltiverify -lcom.onoko.utils -ldk.napp.social -lcom.deko.label -lcom.intentionalapps.freshdesk -lti.admob -Xlinker -dependency_info -Xlinker /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/x86_64/GearTube_dependency_info.dat -o /Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/build/Intermediates/GearTube.build/Debug-iphonesimulator/GearTube.build/Objects-normal/x86_64/GearTube [TRACE] ld: warning: directory not found for option '-F/Volumes/Data/James/Documents/Programs/IntentionalApps/GearTube/Mobile/build/iphone/../../modules/iphone/ti.admob/2.1.0/platform' [TRACE] ld: warning: directory not found for option '-F/Volumes/Data/James/Library/Application Support/Titanium/modules/iphone/ti.admob/2.1.0/platform' [TRACE] ld: framework not found GoogleMobileAds [TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation) [ERROR] \ BUILD FAILED **

jamesdlow commented 8 years ago

Ah ok, it wasn't related to the /Resources differences, it was actually because I have the Titanium SDK installed in /Library which is the location for a while back. I've put fixes here: https://github.com/jamesdlow/ti.admob

And raised a pull request here: https://github.com/appcelerator-modules/ti.admob/pull/56