команда swift linker завершилась неудачно с кодом выхода 1 Установка модуля Google Maps iOS Util - PullRequest
1 голос
/ 19 марта 2019

Моя сборка не удалась с swift linker command failed with exit code 1. В журналах конкретно написано symbol(s) not found for architecture x86_64

Это случилось с тех пор, как я попытался настроить Google-Maps-iOS-Utils.

Это мой Подфайл. Есть часть pre_install, потому что без нее pod install будет иметь ошибку 'Pods-Project' target has transitive dependencies that include static binaries.

# platform :ios, '9.0'

target 'My App' do
  use_frameworks!

  platform :ios, '11.3'

  # Pods for My App
  pod 'GoogleMaps'
  pod 'Google-Maps-iOS-Utils' #the new pod that caused issues
  pod 'Firebase/Core'
  pod 'Firebase/Auth'
  pod 'GoogleSignIn'
  pod 'Firebase/Database'
  pod 'Firebase/Storage'
  pod 'FirebaseUI/Storage'
  pod 'Fabric', '~> 1.7.9'
  pod 'Crashlytics', '~> 3.10.5'

  target 'My AppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

Это мой Bridging-Header.h

#ifndef Bridging_Header_h
#define Bridging_Header_h
#import <Google-Maps-iOS-Utils/GMUMarkerClustering.h>
#endif /* Bridging_Header_h */

Некоторые меры по устранению неполадок, которые я попытался: Очистка Build Folder и Building снова; деинтеграция модулей и их установка снова.

Любая помощь приветствуется. Спасибо.

Ответы [ 2 ]

0 голосов
/ 20 марта 2019

Попробуйте добавить местоположение библиотеки в двоичном пути поиска настройки сборки.

0 голосов
/ 20 марта 2019

Это решение сработало для меня.Также нет необходимости в этой части в Podfile.

pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

Мне также пришлось удалить каркас пути двоичного поиска в Фазах сборки.

...