XCode: Undefined symbols for architecture arm64 error

后端 未结 6 1886
臣服心动
臣服心动 2020-12-18 10:01

In my XCode 5 project I use RestKit for REST communication. Everything works fine with the simulators, but generating the ipa file, I get the following error:



        
相关标签:
6条回答
  • 2020-12-18 10:38

    I ran into the same/similar issue implementing AVPictureInPictureController and the issue was that I wasn't linking the AVKit framework in my project.

    The error message was:

    Undefined symbols for architecture armv7:

    "_OBJC_CLASS_$_AVPictureInPictureController", 
    referenced from:
       objc-class-ref in yourTarget.a(yourObject.o)
    ld: symbol(s) not found for architecture armv7
    

    clang: error: linker command failed with exit code 1 (use -v to see invocation) The Solution:

    Go to your Project Select your Target Then, go to Build Phases Open Link Binary With Libraries Finally, just add + the AVKit framework / any other framework. Hopefully this helps someone else running into a similar issue I had.

    0 讨论(0)
  • 2020-12-18 10:39

    In my case i forgot to add sqlite library in my project. After adding library from Linked framework and library the build was successful.

    0 讨论(0)
  • 2020-12-18 10:48

    This worked for me:

    ios sdk 9.3

    into your build setting of app.xcodeproj valid architecture: armv7 armv7s Build Active architecture : No

    Clean and build , worked for me.

    0 讨论(0)
  • 2020-12-18 10:49
    1. Select Restkit project
    2. Set the Build Active Architecture Only to No

    Build Active Architecture Only

    0 讨论(0)
  • 2020-12-18 10:52

    Just change in RestKit project -> Build Settings -> Architectures to Standard Architecture (armv7, armv7s, arm64). After that everything should work.

    0 讨论(0)
  • 2020-12-18 10:57

    It just means you are building your project also for 64bit (iPhone 5s) and nothing to worry about, see this link for some more explanations: Xcode 5 and iOS 7: Architecture and Valid architectures

    0 讨论(0)
提交回复
热议问题