Ich verwende Google Sign-in für meine iOS-Anwendung. Dies ist in Xcode 7. Ich habe alle Anweisungen auf der Website befolgt. Ich habe pod init gemacht, pod 'Google/SignIn'
in die Poddatei gestellt, pod install ausgeführt, die Konfigurationsdatei heruntergeladen und in das Projekt gezogen, die REVERSED_CLIENT_ID in URL Schemes von ino.plist eingetragen. Ich lege alles in AppDelegate.m. Ich bin auch mit Facebook Anmeldung so statt, was sie mir gesagt, ich habe dies in:Der Linker-Befehl ist mit Exitcode 1 bei Google fehlgeschlagen. Anmelden
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
return [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation] || [[GIDSignIn sharedInstance] handleURL:url
sourceApplication:sourceApplication
annotation:annotation];
}
Allerdings bin ich die folgende Fehlermeldung erhalten:
ld: library not found for -lPods-APP_NAME
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ich habe versucht, das Hinzufügen $ (project_dir) zu Framework Search Paths und markiert es rekursiv, aber das hat nicht funktioniert. Wer weiß was los ist?
Edit: Wenn ich pod install
laufen sehe ich die folgenden Meldungen:
[!] The `Piste [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-Piste/Pods-Piste.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `Piste [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-Piste/Pods-Piste.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
Wow, das wars. Ich schaute mir die .xcproj-Datei an. Vielen Dank! –
Kein Problem, ich bin froh, dass ich geholfen habe. –