missing required architecture armv7 in file?

前端 未结 7 1976
自闭症患者
自闭症患者 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.

提交回复
热议问题