2017-08-24
Apple Mach-O Linker (Id) Error
Linker command failed with exit code 1
(use -v to see invocation)
报这个错,多半是因为没有在静态库里找到相应的类。
2018-05-04
Showing Recent Messages
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/AliyunVideoSDKPro.framework/AliyunVideoSDKPro) file '/Volumes/data/Mac10-13/workspace/quPai2017/重新来过/ModulesDevProject/UZApp/AliyunVideoSDKPro.framework/AliyunVideoSDKPro' for architecture arm64
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/AliyunVideoSDKPro.framework/AliyunVideoSDKPro) file '/Volumes/data/Mac10-13/workspace/quPai2017/重新来过/ModulesDevProject/UZApp/AliyunVideoSDKPro.framework/AliyunVideoSDKPro' for architecture arm64
意思是说 AliyunVideoSDKPro.framework最低只支持iOS 8.0,而你的工程最低是iOS 7.0
工程中找到iOS Deployment Target 改为 iOS 8.0就好了。
Library not loaded: Reason: image not found
把加载不了的framework 的在Link Binary With Libraries中把Required 变为 Optional
2018-05-05
以前好奇,有些framework的包里面是一个黑块,黑块上面有个绿字“exec” ,不知道为什么有不同,普通的是白板。
今天瞎猫撞上死耗子,花了好多时间,居然知道了它就是动态的framework
而且动态的framework是要放在targets -> General -> Embedded Binaries 而不是Build Phases里的 Link Binary With Libraries
2018-05-06
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
这个是因为没有加权限,需要在Info.plist里加权限。
遇到图片png不合规,我以为大面积要换,哪知道换了一个,其它的都不报错了。