iOS import German map appears missing armv7--"Undefined symbols for architecture armv7"

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.