2012-10-30 1 views
1

이것이 의미하는 바를 이해해야합니다. & 앞으로 어떻게 해결할 것인가.이러한 빌드 오류는 무엇을 의미합니까 & 이런 상황에서 어떻게 디버깅을 더 잘 할 수 있습니까? Xcode, PayPal SDK

나는 내가 페이팔 SDK

! [페이팔 SDK] [1]

에서 내 솔루션에 다음 파일을 추가

https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_MPL_Developer_Guide_and_Reference_iPhone.pdf, 정확히이 가이드 & 따라 다음되었다

내 솔루션의 파일 이미지가 있습니다. 이미지를 게시 할 수 없으며 10 포인트가 넘지 않습니다.

PayPal.h & PayPalAdvancedPayment.h를 내 수업 중 하나에 가져 왔으며 paypal에서 제공하는 샘플 코드는 30 페이지에 있습니다.

확실한 오류가 없는지 확인한 다음 솔루션을 작성했습니다. 이 두 파일을 가져 오기 전까지는 내 솔루션이 제대로 구축되고 실행되었습니다.

PayPal.h & PayPalAdvancedPayment.h

! [엑스 코드는 빌드 오류가] [2]

전체 디버그 메시지 덤프는 다음과 같습니다 엑스 코드에 디버그 오류의 이미지를 ..had .

Undefined symbols for architecture armv7: 
"_SecPolicyCreateBasicX509", referenced from: 
    +[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o) 
"_SecTrustCreateWithCertificates", referenced from: 
    +[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o) 
"_inflateEnd", referenced from: 
    -[GZipper obfm_initWithGzippedData:] in libPayPalMPL.a(GZipper.o) 
    +[GZipper obfm_gzipInflate:] in libPayPalMPL.a(GZipper.o) 
    -[GZipper obfm_zlibInflate] in libPayPalMPL.a(GZipper.o) 
"_deflateInit_", referenced from: 
    -[GZipper obfm_zlibDeflate] in libPayPalMPL.a(GZipper.o) 
"_inflate", referenced from: 
    -[GZipper obfm_initWithGzippedData:] in libPayPalMPL.a(GZipper.o) 
    +[GZipper obfm_gzipInflate:] in libPayPalMPL.a(GZipper.o) 
    -[GZipper obfm_zlibInflate] in libPayPalMPL.a(GZipper.o) 
"_deflateEnd", referenced from: 
    -[GZipper obfm_zlibDeflate] in libPayPalMPL.a(GZipper.o) 
    +[GZipper obfm_gzipDeflate:] in libPayPalMPL.a(GZipper.o) 
"_inflateInit_", referenced from: 
    -[GZipper obfm_zlibInflate] in libPayPalMPL.a(GZipper.o) 
"_SecTrustCopyPublicKey", referenced from: 
    +[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o) 
"_SecKeyGetBlockSize", referenced from: 
    +[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o) 
"_inflateInit2_", referenced from: 
    -[GZipper obfm_initWithGzippedData:] in libPayPalMPL.a(GZipper.o) 
    +[GZipper obfm_gzipInflate:] in libPayPalMPL.a(GZipper.o) 
"_SecCertificateCreateWithData", referenced from: 
    +[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o) 
"_SecKeyEncrypt", referenced from: 
    +[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o) 
"_SecTrustEvaluate", referenced from: 
    -[AdaptivePaymentsSOAP11BindingOperation connection:didReceiveAuthenticationChallenge:] in libPayPalMPL.a(AdaptivePayments.o) 
    +[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o) 
    -[GMAdapterSOAP11BindingOperation connection:didReceiveAuthenticationChallenge:] in libPayPalMPL.a(GMAdapter.o) 
"_deflate", referenced from: 
    -[GZipper obfm_zlibDeflate] in libPayPalMPL.a(GZipper.o) 
    +[GZipper obfm_gzipDeflate:] in libPayPalMPL.a(GZipper.o) 
"_deflateInit2_", referenced from: 
    +[GZipper obfm_gzipDeflate:] in libPayPalMPL.a(GZipper.o) 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

무엇이 문제인가? 향후 문제를 해결할 수 있도록 문제의 원인을 파악하려면 어떻게해야합니까?

나는 여전히 당신이 프로젝트에 보안 프레임 워크를 추가 할 필요가 나타납니다 엑스 코드 & 목표 - C

답변

8

의 묘리를 터득하는 학습, 일반적으로 비주얼 스튜디오 C#의 .NET 개발자입니다. Xcode에서 대상을 선택한 다음 요약 탭을 선택하십시오. 링크 된 프레임 워크 및 라이브러리 섹션으로 스크롤합니다. 섹션 하단의 + 기호를 클릭하고 Security.framework를 선택하십시오.

+1

내가 몇 가지 오류가 기절 했어, 나는이 게시물을 읽고 있었다> http://stackoverflow.com/questions/6429494/undefined-symbols-for-architecture-armv7 그리고 나는 또한 lib1.2.5.dylib를 추가했다. 오류의 나머지 부분을 기절. 다시 한번 감사드립니다. @rmaddy는 나를 도왔습니다. 그것은 지금 성공적으로 컴파일됩니다. 방금 테스트했는데 페이팔 버튼이 있습니다. 나중에 참조 할 수 있도록 어떻게 더 잘 디버깅 할 수 있을까요? 위의 출력에서 ​​단서를 찾아야합니다. – Lismore

+0

찾을 수없는 것으로 표시된 기호를보십시오. 선행 밑줄을 제거하고 문서에서 기호를 검색하십시오. 문서 상단에는 그것이 속한 프레임 워크가 지정되어야합니다. – rmaddy

관련 문제