missing required architecture armv7 in file?

前端 未结 7 1936
自闭症患者
自闭症患者 2020-12-29 22:55

I keep getting this warning and errors can anyone help?

    ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms       /iPhoneOS.p         


        
相关标签:
7条回答
  • 2020-12-29 23:10

    You need to link against the SystemConfiguration framework. Select your project in Xcode's project navigator, select your app target, and select the Build Phases tab. Under Link Binary With Libraries, click on the "+" button and choose SystemConfiguration.framework.

    There may be other framework dependencies that you need to add in the same way, but adding SystemConfiguration is what fixed the same errors for me.

    ETA: I jumped right to the errors and didn't see the ld warning at the top of the paste. If you're already linking to SystemConfiguration, maybe try removing and re-adding it, and if all else fails, update Xcode. The most recent release definitely has the right architecture, so it sounds to me like either your project is looking in the wrong place or something's wrong with the framework itself.

    0 讨论(0)
  • 2020-12-29 23:13

    Pls make sure to add all the necessary library to build your app. this error seems like you have missed some files..

    0 讨论(0)
  • 2020-12-29 23:15

    Add army in your project ( Path => Project tittle(select Xcode blue color reject title) -> Build Setting -> ARCHS) in this ARCHS if you don't have armv7 than add it...

    Hope,this will help you..

    0 讨论(0)
  • 2020-12-29 23:16

    Happened to me when I was including a framework that was built using Carthage and it's deployment target has been set to iOS 11 but I was building for iOS 9. Therefore the 32-bit architectures (armv7, i386) were missing. I have changed the deployment target for that framework to iOS 9 and that fixed my problem.

    0 讨论(0)
  • 2020-12-29 23:16

    This problem is related to the XCode messing up debugging, profile and final release files, when trying to get a shorter build time reusing old files.

    That's why an architecture is missing (and it's probably the opposite of what you've already used), because XCode is trying to reuse some previous files that it built for a single architecture.

    Clean your project in XCode (⇧ + ⌘ + K) and try to clean all other third-party libraries as well. After that, try to rebuild your app directly in the desired release mode. This worked 100% times without the need to restart XCode.

    XCode stinks, what else could I say??

    0 讨论(0)
  • 2020-12-29 23:17

    Go To Click on the project icon-> Targets -> Build Settings -> Architectures

    Click -> other + and add armv6 in the specified column...

    Clean and Build

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