Я использую Google для входа в приложение для iOS. Это в Xcode 7. Я выполнил все инструкции на веб-сайте. Я сделал pod init, положил pod 'Google/SignIn'
в подфайл, выполнил установку pod, загрузил конфигурационный файл и перетащил его в проект, поместил REVERSED_CLIENT_ID в URL-схемы схемы to.plist. Я положил все в AppDelegate.m. Я также использую Facebook войти таким образом, вместо того, что они сказали мне, что я положил это в:Не удалось выполнить команду Linker с кодом выхода 1 с помощью Google Войти
- (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];
}
Однако, я получаю следующее сообщение об ошибке:
ld: library not found for -lPods-APP_NAME
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Я попробовал, добавив $ (project_dir) на пути поиска в базе данных и пометить его рекурсивным, но это не сработало. Кто-нибудь знает, что может произойти?
Edit: Когда я бегу pod install
я вижу следующие сообщения:
[!] 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.
Вау, вот и все. Я смотрел файл .xcproj. Огромное вам спасибо! –
Нет проблем! Рад помочь. –