When copying items
1. Note for pod third-party libraries:
When poding, copy all the text in other people's podfile and paste it into your own project, just change the targer 'xxxx'do, and then pod update.
When copying a victim item
Reference: Completely solve similar problems of "_OBJC_CLASS_$_XXXService" , referenced from: in the iOS project :
https://blog.csdn.net/niepeng109/article/details/46413543
2. Due to the introduction of the new feature App Transport Security (ATS) in iOS9 in Xcode7, the Api interface must be HTTPS in the future, but my previous project used the HTTP protocol and used private encryption to ensure data security.
Solution:
Add NSAppTransportSecurity type Dictionary in Info.plist.
Add NSAllowsArbitraryLoads type Boolean under NSAppTransportSecurity, set the value to YES
3. Problems that need to be paid attention to when introducing the PrefixHeader.pch file:
a. to join
#ifdef __OBJC__
#endif
Meaning: only oc language can be referenced
b. To create the PrefixHeader.pch file, you need to configure something in the target->build setting (I just did not configure it in the target, but in another place, which caused the header files in the PrefixHeader.pch file to be invalid)
c. When configuring, select yes for Precompile Prefix Header, which allows the compiled header file to be saved locally, and is more efficient when called next time