5

'Google-Maps-iOS-Utils '를 설치하려고하는데 오류가 발생합니다. 내가 pod 'Google-Maps-iOS-Utils'을 제거하기 위해 노력하고 일했다''Pods '타겟에'Google-Maps-iOS-Utils '를 설치할 때 정적 바이너리가 포함 된 전이 의존성이 있습니다.

platform :ios, '9.0' 
use_frameworks! 
target 'MapClusters' do 
    pod 'Alamofire' 
    pod 'SwiftyJSON' 
    pod 'GoogleMaps' 
    pod 'Google-Maps-iOS-Utils' 
end 

: 여기 는 Podfile입니다. 그래서 Google Maps-iOS-Utils가 문제를 일으키는 원인이라고 생각합니다. 전체 오류는 다음과 같습니다.

[!] The 'Pods-MapClusters' target has transitive dependencies that include static binaries: (/Users/BAPS/Documents/Test/MapClusters/Pods/GoogleMaps/Subspecs/Base/Frameworks/GoogleMapsBase.framework, /Users/BAPS/Documents/Test/MapClusters/Pods/GoogleMaps/Subspecs/Maps/Frameworks/GoogleMapsCore.framework, and /Users/BAPS/Documents/Test/MapClusters/Pods/GoogleMaps/Subspecs/Maps/Frameworks/GoogleMaps.framework) 

나는 이미 여기 또는 다른 웹에서 답변을 많이 받았습니다.

  1. 이적 종속성에 대한 검사를 비활성화 : 은 지금까지 나는이 솔루션을 시도했다.

    2. pre_install do |installer| def installer.verify_no_static_framework_transitive_dependencies; end end

    post_install do |installer| find Pods -regex 'Pods/GoogleMaps.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)GoogleMaps\\/\\(.*\\)\\(>\\)/\\"\\2\\"/' find Pods -regex 'Pods/Google-Maps-iOS-Utils.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)Google-Maps-iOS-Utils\\/\\(.*\\)\\(>\\)/\\"\\2\\"/' end

Podfile, 설치 작품 두 점 이상 추가 한 후 그러나 나는이 오류를 얻을 응용 프로그램을 실행하려고하면

Error

pod 'SwiftyJSON'을 제거한 후 t는 작동하지만 나는 그것을 필요로한다.

나는 다른 것들도 거의 시도하지 않았지만 아무것도 도움이되지 못했습니다. 나는 ios 개발에 익숙하지 않아서 스스로 도울 수 없다.

저는 swift, xcode 7.3 및 최신 cocoapods를 사용하고 있습니다.

+0

'GoogleMaps.h' 파일의 존재 여부를 확장하여 프레임 워크를 체크인하십시오. 모든 헤더 파일과 함께 프레임 워크를 올바르게 추가하십시오. –

+0

@DipenPanchasara 알아낼 수 없습니다. 정확히 어디에서 봐야 해. 그리고 그것이 존재하지 않는다면 어떻게 그곳에 그것을 추가 할 수 있습니까? –

+0

나는 조금 바빠서, 내일 확실하게 조사 할 시간을 좀주세요. –

답변

4

나는 많은 고투 끝에 이것을 알아 냈다. 요청에 따라 Google 사람들은 git 저장소에 자습서를 작성했습니다. Here is the link

0

당신의 포드 파일 포드를 설치하는 동안 오류가 발생하지 않도록하기 위해 podfile에서이 코드를 사용

platform :ios, '9.0' 
use_frameworks! 
target 'MapClusters' do 
    pod 'Alamofire' 
    pod 'SwiftyJSON' 
    pod 'GoogleMaps' 
    pod 'Google-Maps-iOS-Utils', :git => 'https://github.com/googlemaps/google-maps-ios-utils' 
end 
+3

을 사용하십시오. 이미 시도했습니다. 그것은 작동하지 않았다. –

3

업데이트하십시오 :

pre_install do |installer| 
    def installer.verify_no_static_framework_transitive_dependencies; end 
end 

하지만 여전히 포드 lib 디렉토리에 대한 솔루션이 필요합니다.

+1

좋아, 고마워. – RaziPour1993