在Xcode12以下版本没暴露出来问题,能正常的运行。
一、项目中有重复的文件的报错
类中文件报 Property has a previous declaration
有重复文件删除一个就OK了
二、关于sdwebimage报错
报错:objc_msgSend(delegate, @selector(webImageManager:didFinishWithImage:forURL:), self, image, url);
Too many arguments to function call, expected 0, have 5
解决:选Build Settings,将 Enable Strict Checking of objc_msgSend Calls 设置为NO
三、类似ld: library not found for -l“”
报错:
ld: library not found for -lPods-SendCard
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决:Build Phases -->Link Binary With Libraries 找到Pods-SendCard删除
四、类似building for iOS Simulator, but linking in object file built for iOS, file
/Users/XXX/Pods/UMengAnalytics/umsdk_IOS_analyics_idfa_v4.1.4/UMMobClick.framework/UMMobClick(UMAOCTools.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/XXX/Pods/UMengAnalytics/umsdk_IOS_analyics_idfa_v4.1.4/UMMobClick.framework/UMMobClick' for architecture arm64
Target — Build Settings — VALID_ARCHS 的值删掉
如果项目中用到 x86_64
需VALID_ARCHS 加上 x86_64
https://developer.apple.com/forums/thread/657913
https://www.jianshu.com/p/55d290a204e7
五、
错误you don't have permission,to view or change permissions,select the item in the finder and choose file > Get Info
解决方法
Target——Build Settings最下面有个VALID_ARCHS,加一个x86_64
(部分报错中也提示arm64,同理加上就可以)
网友评论