Xcode 6.1 Missing required architecture X86_64 in file

后端 未结 11 1554
青春惊慌失措
青春惊慌失措 2020-11-27 02:53

In Xcode 6.1 , I am getting error for iPhone 6, iPhone 5s(iOS 7.1) which says

    Undefined symbols for architecture x86_64:
      \"_OBJC_CLASS_$_ClientAut         


        
相关标签:
11条回答
  • 2020-11-27 03:15

    My solution was connect my iPhone 6, build on it and I got the project running successfully.

    Because I was building for iPhone 6 Simulator.

    0 讨论(0)
  • 2020-11-27 03:16

    I run into exactly the same problem and was following this tutorial https://github.com/jverkoey/iOS-Framework#faq

    The way that I made this work is after putting into the scripts into your Aggregate's Build Phase, before you compile, make sure you compile it using an iphone simulator (I used iPhone6) instead of IOS Device.

    which will give me 2 slices: armv7 and x86_64, then drag and drop it into new project is working fine for me.

    0 讨论(0)
  • 2020-11-27 03:19

    If you are having this problem in react-native projects with one of the external library. You should remove the project and use react-native link <package-name> again. That should solve the problem.

    0 讨论(0)
  • 2020-11-27 03:21

    Many use the build scripts found either here: http://www.raywenderlich.com/41377/creating-a-static-library-in-ios-tutorial or here: https://gist.github.com/sponno/7228256 for their run script in their target.

    I was pulling my hair out trying to add x86_64, i386, armv7s, armv7, and arm64 to the Architectures section, only to find lipo -info targetname.a never returning these architectures after a successful build.

    In my case, I had to modify the target runscript, specifically step 1 from the gist link, to manually include the architectures using -arch.

    Step 1. Build Device and Simulator versions xcodebuild -target ${PROJECT_NAME} ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" xcodebuild -target ${PROJECT_NAME} -configuration ${CONFIGURATION} -sdk iphonesimulator -arch x86_64 -arch i386 -arch armv7 -arch armv7s -arch arm64 BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"

    0 讨论(0)
  • 2020-11-27 03:24

    Following changes you have to make that's it(change architecture into armv7 and remove others) :-

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