2014-12-04 7 views
27

내가 작업해야하는 프로젝트에서 문제가 발생했습니다. 이 프로젝트는 Cocoapods를 사용하여 라이브러리를 관리합니다. 평소와 같이 pod install을 실행했지만 xcode에서 오류가 발생합니다.Cocoapods 라이브러리 용 아키텍처 armv7에 대한 정의되지 않은 기호

enter image description here

이 모든 기호는 내 프로젝트에 사용하는 라이브러리입니다 : 당신은 아래 이미지에서 볼 수 있듯이 나는 Undefined symbols for architecture armv7을 얻었다. 예 : AFNetworking, RNBlurModalView. 모든 Cocoapods 관련 파일을 프로젝트에서 제거하고 pod install을 다시 실행하려고 시도했지만 문제가 해결되지 않았습니다. 내가 지금까지했던 어떤

:

  • 청소 프로젝트를 다시 빌드합니다.
  • Cocoapods 관련 파일을 제거하고 pod install을 다시 실행하십시오.
  • 프로젝트 대상의 컴파일 소스에서 클래스를 추가하려고했으나 시도 할 수 없습니다. 클래스가 Pods 작업 영역에 있습니다.
  • YES에서 NO까지 빌드 활성 아키텍처 만 설정하십시오.

나는 또한 same problem에서 솔루션을 시도하지만 그 중 아무 것도 나를 위해 노력하고 있습니다.

도움이된다면 xCode6 및 Cocoapods 0.34.4을 사용하고 있습니다. 프로젝트에 유효한 아키텍처는 armv7 and armv7s입니다.

업데이트 :이 사전에 pod install --verbose

Integrating client project 

Integrating target `Pods` (`AIYOCore.xcodeproj` project) 

[!] The use of implicit sources has been deprecated. To continue using all of the sources currently on your machine, add the following to the top of your Podfile: 

    source 'https://github.com/CocoaPods/Specs.git' 


[!] The `Project [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

[!] The `Project [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

감사를 실행.

답변

70

OTHER LINKER FLAGS에 $(inherited)이없는 것 같습니다. pod install의 출력을 게시하십시오.

+0

안녕하세요, 난 그냥 관련되어 있다고 생각 로그의 부품 내 질문에 업데이트되었습니다. 그것을보고 마음? –

+0

내가 전에 쓴 것처럼, 모든 타겟에 대해 OTHER_LDFLAGS에 $ (상 속됨)을 첫 줄에 추가하십시오. –

+0

@Andrei. 이 문제가 해결되었습니다. –

1

빌드 폴더 (⌥⇧⌘K)를 정리하면됩니다.

enter image description here