Bug 9620 - Google Analytics: Build fails when configuration changed to debug/iphone
Summary: Google Analytics: Build fails when configuration changed to debug/iphone
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.99.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-01-16 16:33 UTC by Mehul Thakkar
Modified: 2013-01-17 05:30 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mehul Thakkar 2013-01-16 16:33:34 UTC
I have added GoogleAnalytics code to my monotouch project. It works fine as long as I am in debug/iphoneSimulator configuration. But when I try change to debug/iphone, build fails with the following error.

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --cache "/Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache" --nomanifest --nosign -dev "/Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Json.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/MonoTouch.Dialog-1.dll" -r "/Users/jx5524/Documents/Projects/MyClaim/Source/Dependencies/MonoBindings/iOS Analytics/GoogleAnalytics.dll" -linksdkonly -sdk "6.0" -targetver "5.0" --abi=armv7 "/Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.exe"
MonoTouch version 6.0.8 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
Copied /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.exe to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/MyClaimTouch.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/monotouch.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/System.Xml.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Json.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/System.Json.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/MonoTouch.Dialog-1.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/MonoTouch.Dialog-1.dll
Copied /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/GoogleAnalytics.dll to /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/GoogleAnalytics.dll
Linking SDK only for assembly /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.exe into /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app
MONO_PATH=/Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,nodebug,outfile=/var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/GoogleAnalytics.dll.armv7.s "/Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/GoogleAnalytics.dll"
MONO_PATH=/Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv7-darwin,full,static,asmonly,direct-icalls,nodebug,outfile=/var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/MyClaimTouch.exe.armv7.s "/Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/bin/iPhone/Ad-Hoc/MyClaimTouch.app/MyClaimTouch.exe"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc  -miphoneos-version-min=5.0 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -c /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/GoogleAnalytics.dll.armv7.s -o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/GoogleAnalytics.dll.armv7.o
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc  -miphoneos-version-min=5.0 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -c /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/MyClaimTouch.exe.armv7.s -o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/MyClaimTouch.exe.armv7.o
Generated /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/main.armv7.m
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc  -Wl,-no_pie  -miphoneos-version-min=5.0 -gdwarf-2  -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk  /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/monotouch.armv7.cache.EN8kdVnpS1TpbZ0jYs8a0gD+kxE=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/System.armv7.cache.0QAOYU-OPaambVE-IITFxl09tn0=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/mscorlib.armv7.cache.+gurjpEuoU+QjhbKohch8gTS7Zw=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/MonoTouch.Dialog-1.armv7.cache.dZUDaXaYHnd9BLSXJ1kDsGoKY30=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/System.Core.armv7.cache.n-n83wos8qu757jgq00VUrbbq48=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/System.Json.armv7.cache.5L779sW6EtHz7EmbF5bzmhC-5K8=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/Mono.Security.armv7.cache.FeOyHC-rBiwqdNBNM4vv4V7p+vk=.o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/GoogleAnalytics.dll.armv7.o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/MyClaimTouch.exe.armv7.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/main..armv7.cache.Iu3FCD2ZduJ0Z6tCrqOgATWdw9U=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/registrar.armv7.cache.n6W-A+y4WTburReqO4kzrs1052g=.o -o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/MyClaimTouch -framework CFNetwork -framework Foundation -framework MessageUI -framework UIKit -framework SystemConfiguration -framework AudioToolbox -framework QuartzCore -framework CoreGraphics -lz -liconv -u _mono_pmip -u _monotouch_create_managed_ref -u _monotouch_release_managed_ref -u _monotouch_IntPtr_objc_msgSend_IntPtr -u _monotouch_IntPtr_objc_msgSendSuper_IntPtr -u _CloseZStream -u _CreateZStream -u _Flush -u _ReadZStream -u _WriteZStream -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib  -force_load /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/libGoogleAnalytics.a
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc  -Wl,-no_pie  -miphoneos-version-min=5.0 -gdwarf-2  -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk  /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/monotouch.armv7.cache.EN8kdVnpS1TpbZ0jYs8a0gD+kxE=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/System.armv7.cache.0QAOYU-OPaambVE-IITFxl09tn0=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/mscorlib.armv7.cache.+gurjpEuoU+QjhbKohch8gTS7Zw=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/MonoTouch.Dialog-1.armv7.cache.dZUDaXaYHnd9BLSXJ1kDsGoKY30=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/System.Core.armv7.cache.n-n83wos8qu757jgq00VUrbbq48=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/System.Json.armv7.cache.5L779sW6EtHz7EmbF5bzmhC-5K8=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/Mono.Security.armv7.cache.FeOyHC-rBiwqdNBNM4vv4V7p+vk=.o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/GoogleAnalytics.dll.armv7.o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/MyClaimTouch.exe.armv7.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/main..armv7.cache.Iu3FCD2ZduJ0Z6tCrqOgATWdw9U=.o /Users/jx5524/Documents/Projects/MyClaim/Source/MyClaimTouch/obj/Ad-Hoc/mtouch-cache/registrar.armv7.cache.n6W-A+y4WTburReqO4kzrs1052g=.o -o /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/MyClaimTouch -framework CFNetwork -framework Foundation -framework MessageUI -framework UIKit -framework SystemConfiguration -framework AudioToolbox -framework QuartzCore -framework CoreGraphics -lz -liconv -u _mono_pmip -u _monotouch_create_managed_ref -u _monotouch_release_managed_ref -u _monotouch_IntPtr_objc_msgSend_IntPtr -u _monotouch_IntPtr_objc_msgSendSuper_IntPtr -u _CloseZStream -u _CreateZStream -u _Flush -u _ReadZStream -u _WriteZStream -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib  -force_load /var/folders/8r/k6cfmvn92rv3cqy8jx8ljmfh0000gn/T/tmp56008c41.tmp/libGoogleAnalytics.a
Undefined symbols for architecture armv7:
  "_NSInMemoryStoreType", referenced from:
      l003 in libGoogleAnalytics.a(GAIDataStore.o)
  "_NSSQLiteErrorDomain", referenced from:
      l003 in libGoogleAnalytics.a(GAIDataStore.o)
      l006 in libGoogleAnalytics.a(GAIDataStore.o)
      l007 in libGoogleAnalytics.a(GAIDataStore.o)
      l011 in libGoogleAnalytics.a(GAIDataStore.o)
      l012 in libGoogleAnalytics.a(GAIDataStore.o)
      l014 in libGoogleAnalytics.a(GAIDataStore.o)
      l015 in libGoogleAnalytics.a(GAIDataStore.o)
      ...
  "_NSSQLiteStoreType", referenced from:
      l003 in libGoogleAnalytics.a(GAIDataStore.o)
  "_OBJC_CLASS_$_NSAttributeDescription", referenced from:
      objc-class-ref in libGoogleAnalytics.a(GAICoreDataUtil.o)
  "_OBJC_CLASS_$_NSEntityDescription", referenced from:
      objc-class-ref in libGoogleAnalytics.a(GAIHit.o)
      objc-class-ref in libGoogleAnalytics.a(GAIProperty.o)
  "_OBJC_CLASS_$_NSFetchRequest", referenced from:
      objc-class-ref in libGoogleAnalytics.a(GAIDataStore.o)
  "_OBJC_CLASS_$_NSManagedObject", referenced from:
      _OBJC_CLASS_$_GAIHit in libGoogleAnalytics.a(GAIHit.o)
      _OBJC_CLASS_$_GAIProperty in libGoogleAnalytics.a(GAIProperty.o)
  "_OBJC_CLASS_$_NSManagedObjectContext", referenced from:
      objc-class-ref in libGoogleAnalytics.a(GAIDataStore.o)
  "_OBJC_CLASS_$_NSManagedObjectModel", referenced from:
      objc-class-ref in libGoogleAnalytics.a(GAIDataStore.o)
  "_OBJC_CLASS_$_NSPersistentStoreCoordinator", referenced from:
      objc-class-ref in libGoogleAnalytics.a(GAIDataStore.o)
  "_OBJC_METACLASS_$_NSManagedObject", referenced from:
      _OBJC_METACLASS_$_GAIHit in libGoogleAnalytics.a(GAIHit.o)
      _OBJC_METACLASS_$_GAIProperty in libGoogleAnalytics.a(GAIProperty.o)
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status


error MT5202: Native linking failed. Please review the build log.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-01-17 05:30:40 UTC
Fixed.

monotouch-bindings: 2ce50d34259eeaed4dbaceb5df11a35ea97121cc