Using pod in an existing project to import the gold map, reported the following error:
Ld:warning:directory not found forOption'-l/users/paul/ios/yun-hui-yi/libs/release-iphoneos'Undefined Symbols forArchitecture ARMv7:"_objc_class_$_mamapview", referenced FROM:OBJC-class-ref inchSINGLELOCATIONVIEWCONTROLLER.O"_objc_class_$_mapointannotation", referenced FROM:OBJC-class-ref inchSINGLELOCATIONVIEWCONTROLLER.O"_objc_class_$_mapinannotationview", referenced FROM:OBJC-class-ref inchSINGLELOCATIONVIEWCONTROLLER.O"_objc_class_$_amaplocationmanager", referenced FROM:OBJC-class-ref inchSingleLocationViewController.old:symbol (s) not found forArchitecture armv7clang:error:linker command failed with exit code1(Use-v to see invocation)
First Baidu a bit, will find that we have encountered this problem is still a lot of cases, reference: Error Summary: Undefined symbols for architecture
The problem I encountered is not in its column, the following is my workaround:
This is also thanks to the pod, which then shares the personal problem-solving process:
First of all, the way I import the Gold map is the pod Auto-import, which is very convenient. After you type "pod install" in the DOS window, you can import any of the existing third-party libraries you want (use and installation reference: How to Install/update ruby, install Cocoapods, prepare for development!) )
Then, I found that the import did not print out the usual success information, but instead appeared the following content:
in ' pods/target support Files/pods-cdmameeting/pods-cdmameeting.debug.xcconfig'. This can leads to problems with the CocoaPods installation - the ' $ (inherited) ' flag, or - Re Move the build settings from the target. [ in ' pods/target support Files/pods-cdmameeting/pods-cdmameeting.release.xcconfig'. This can leads to problems with the CocoaPods installation - the ' $ (inherited) ' flag, or -Re Move the build settings from the target.
It means:
[! ] ' cdmameeting [Debug] ' target overlay 'pods/target support files/pods-cdmameeting/ Pods-cdmameeting.debug.xcconfig'-Use the ' $ (inherited)' flag, or - remove the build settings from the target. [! ] "cdmameeting [Release]" target overlay "Pods/target support files/pods-cdmameeting/pods--use ' $ (inherited)' flag, or -Remove the build settings from the target.
So, in accordance with previous habits, search in target: other_ldflags
Search in Build setting, as shown in the figure above.
What is the specific reason? According to previous practice, Pod is generally successful, if not successful, there are some settings in the project and Pod conflict, here is the other Link flags conflict.
iOS import German map appears missing armv7--"Undefined symbols for architecture armv7"