Illegal Configuration: Compiling IB documents for earlier than iOS 7 is no longer supported

╄→尐↘猪︶ㄣ 提交于 2019-12-04 14:56:05

问题


I recently updated to XCode 9. When I build the app it says "illegal configuration" for some storyboards in my pod files. I tried to recreate the storyboard files but it doesn't help.


回答1:


XCode 9 will not support storyboards that are built for iOS version less than 7.

Try changing the Builds for in File Inspector to a higher version then Clean and Build.

See screenshot

Edit: Important info from @user435779 below: Restart XCode if the errors don't go away.




回答2:


Simply set the deployment target to 8.0 + in General to fix this issue. No need to go through each xib file.




回答3:


As storyboard in Xcode 9 will not support which is below iOS 7.0, so you need to update the iOS version in File inspector.

For more information please find the below GIF representation.

Hope it works!!!




回答4:


I tried both methods - On Xcode 9.3 (9E145)

For each XIB, I added the following Target.

The On Targets -> General -> Deployment Info-> Change target

Cleaned the project and build again into device. It worked!




回答5:


My case was the different, I did all the above solution but not getting succeed build, so I read the error with focus and go to manually with the file open the .Xib file and change it development target to iOS 10 and later.

and Yup.. its work Fine



来源:https://stackoverflow.com/questions/44429415/illegal-configuration-compiling-ib-documents-for-earlier-than-ios-7-is-no-longe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!