Google Analytics ne fonctionne pas sur iOS nouveau projet

J'ai créé un nouveau projet iOS et ajout de Google Analytics soutien par les instructions officielles.

J'ai ajouté pour les Cadres:

libGoogleAnalyticsServices.a
AdSupport.framework
CoreData.framework
SystemConfiguration.framework
libz.dylib

Mais il ne fonctionne pas avec les erreurs:

ld: warning: directory not found for option '-L/Users/.../Sources/GoogleAnalytics'
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_NSManagedObjectModel", referenced from:
      objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o)
  "_OBJC_CLASS_$_NSAttributeDescription", referenced from:
      objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o)
  "_OBJC_CLASS_$_NSEntityDescription", referenced from:
      objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
      objc-class-ref in libGoogleAnalyticsServices.a(GAICoreDataUtil.o)
  "_OBJC_CLASS_$_NSPersistentStoreCoordinator", referenced from:
      objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
  "_OBJC_CLASS_$_NSFetchRequest", referenced from:
      objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
  "_OBJC_CLASS_$_NSManagedObjectContext", referenced from:
      objc-class-ref in libGoogleAnalyticsServices.a(GAIDataStore.o)
  "_NSSQLiteErrorDomain", referenced from:
      -[GAIDataStore performBlockAndWait:withError:] in libGoogleAnalyticsServices.a(GAIDataStore.o)
  "_NSSQLiteStoreType", referenced from:
      -[GAIDataStore coordinatorWithModel:URL:] in libGoogleAnalyticsServices.a(GAIDataStore.o)
  "_NSOverwriteMergePolicy", referenced from:
      -[GAIDataStore contextWithModel:URL:] in libGoogleAnalyticsServices.a(GAIDataStore.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Comment puis-je résoudre ce problème? Et prend-il en charge arm64?

  • chk ce stackoverflow.com/questions/6429494/...
  • Avez-vous ajouté nécessitent tous des cadres?
  • Aman, il ne l'aide pas.
  • Gaurav, ce que les cadres sont nécessaires? J'ai ajouté tout de suite officielles et non officielles les instructions!
  • À partir de cette erreur: "_OBJC_CLASS_$_NSFetchRequest", référencé à partir de: objc-de catégorie-réf dans libGoogleAnalyticsServices.un(GAIDataStore.o) "_OBJC_CLASS_$_NSManagedObjectContext", référencé à partir de: ... Il semble que vous avez manqué l'ajout de Base de Données des cadres..
InformationsquelleAutor Dmitry | 2014-02-25