There is an application that has long been working and laid out in the AppStore, its deployment target is iOS 7.0, it works stably until iOS 10.3. In Xcode 8.3.3, it opens, builds, and starts. There is a task - to run it on iOS 11.0. Only Xcode 9 beta is able to build under iOS 11.0, as well as only it contains simulators with iOS 11.0.
Option 1 in the forehead : Download Xcode 9 beta. BUT beta versions of XCode 9 from 4 to 6 when you run the project give a fatal error and crash.
Option 2 : Build the project through a command line utility for Xcode 9 beta. BUT the assembly (the project uses Cocoapods by the way) ends with an error:
ld: library not found for -lAFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation)
In trying to fix it, many solutions were found, but for older versions of XCode, namely:
- Refresh Cocoapods;
- Remove all pods and reinstall;
- In the field of the project Other Linker Flags: a) remove all flags; b) remove all flags, leaving only $ (inherited);
- Get rid of us_frameworks in a podfile;
- On the Build Phrases tab, add the required libraries to Link Binary With Libraries;
All this had no effect.
Option 3 : re-create the project in Xcode 9 and manually add the source code and dependencies there. The result is the same as in the previous paragraph.
Has anyone encountered a similar problem? What other ways to adapt an application for iOS 11.0?