1.Unexpected CFBundleExecutable Key. The bundle at 'Payload/ChianyuCircle.app/UIAccountBundle.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue. With error code STATE_ERROR.VALIDATION_ERROR.90535 for id f0d81a8f-950d-4cd6-978a-48b865f57fb7
网上搜索的解决方案是去掉bundle/info.plist 中的Executable file 试着手动去删除。可是每次删除了都还是会自动添加。这就麻烦了。
网上查了很久 也没找到解决方案。
后来想着bundle是用来添加资源的,其info.plist文件无实际用处。所以想着是否不加载bundle的info.plist, 在Build Settings设置Generate Info.plist File为No。 再打包上传 可以成功。
2.no rule to process file '/Users/liwg/Desktop/circle/LocalPod/APP_Socket/Classes/ReplayKitSampleBufferSocket/Vendors/libyuv.a' of type 'archive.ar' for architecture 'arm64'
build phases -> compile sources 去掉报警告的文件。
我这里是本地podfile 集成了 .a 去掉.a即可
spec.source_files = "Classes", "Classes/**/*.{h,hpp,m,mm,c,cpp,cc, a}”
3.this block declaration is not a prototype
Xcode提示警告
Build Settings: strict prototypes 设置为NO,则这些警告就消失了
4.Assigning to 'id _Nullable' from incompatible type '__strong typeof (self)' (aka 'CYPrepareLessonVC *const __strong')
设置了代理对象 并没有集成它的代理。 解决UIScrollViewDelegate,UITableViewDelegate
5.[!] The UICircle [Release] target overrides the OTHER_LDFLAGS build setting defined in `../Pods/Target Support Files/Pods-UICircle/Pods-UICircle.release.xcconfig'. This can lead to problems with the CocoaPods installation
去除警告的方法:
Build setting -> other link flags -> $(inherited)
6. [!] The Podfile contains framework or static library targets (UIYunpan, UIAccount, UIChat, UIK12, UICircle), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
可参考最后的解决办法 (e.g. a test target) 添加一个test target
修改后的podfile
target 'UIK12' do
project 'UIK12/UIK12.xcodeproj'
app_socket
ui_common
pod 'ZegoExpressEngine/Video' #即构拉流直播
pod 'CocoaAsyncSocket'
target :UIK12Tests do
inherit! :search_paths
# Pods for testing
end
end
原先的podfle
target 'UIK12' do
project 'UIK12/UIK12.xcodeproj'
app_socket
ui_common
pod 'ZegoExpressEngine/Video' #即构拉流直播
pod 'CocoaAsyncSocket'
end