iOS------------Common classic mistakes

Recently, I used cocoapods to integrate Umeng and found several classic mistakes

1.clang: error: linker command failed with exit code 1 (use -v to see invocation)

This should be a problem with the configuration path.

My solution is: find other link delete all configuration paths, re-pod update

 

2. The second question

duplicate symbol _OBJC_EHTYPE_$_UMTTransportException in:

    /Users/apple/Desktop/PaiPaiWangAPP/Pods/UMCCommon/UMCommon.framework/UMCommon(TTransportException.o) (first directory)

    Pods/UMengAnalytics-NO-IDFA/umsdk_IOS_analyics_no-idfa_v4.2.5/UMMobClick.framework/UMMobClick(TTransportException.o) (second directory)

ld: 229 duplicate symbols for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Through this passage, it can be seen that the two files in the Pods directory (the second directory) and the desktop (the first directory) are in conflict, so find the file under the pods and delete it.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324882687&siteId=291194637