1.Xcode上传成功后,itunes上却显示二进制文件无效的处理方法
二进制文件无效的解决方法:
Product ---->Scheme---->editScheme,然后把最后两项都改为release。Analyze 和Archive都改为release就好了,然后增加build号重新上传即可。
---------------------
2.iOS Xcode 最新构建版本缺少合规证明
xcode 7 + 中添加 App Uses Non-Exempt Encryption NO
3.解决使用 CocoaPods 执行 pod install 时出现 - Use the `$(inherited)` flag ... 警告
[!] The `client_ios_fm_a [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `client_ios_fm_a [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `client_ios_fm_a [Debug]` target overrides the `OTHER_CFLAGS` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `client_ios_fm_a [Debug]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `client_ios_fm_a [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `client_ios_fm_a [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `client_ios_fm_a [Release]` target overrides the `OTHER_CFLAGS` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `client_ios_fm_a [Release]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-client_ios_fm_a/Pods-client_ios_fm_a.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
警告信息
解决方法
打开项目 Target - Build Settings ,搜索 Other Linker Flags ,在这个设置上加入 $(inherited) 。
打开项目 Target - Build Settings,依次搜索如下图所示的警告上提示的设置名称,将这些设置选项全部改为 $(inherited) ,或者选中这些设置按下 delete 键恢复原设置。
然后重新执行 pod install 或者 pod update 就会发现警告消失了。
4.Xcode 10 Error: Multiple commands produce
问题
Showing Recent Messages:-1: Multiple commands produce'/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist': 1) Target'*****'(project'*****') has copycommandfrom'/Users/admxjx/coin-iOS/coin-ios1.0/*****/Info.plist'to'/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist'2) Target'*****'(project'*****') has processcommandwith output'/Users/admxjx/Library/Developer/Xcode/DerivedData/*****-fiyqckrgqvolmlefumieigxfboco/Build/Products/Debug-iphonesimulator/*****.app/Info.plist'
解决1:删除重复的info.plist(删除前请备份好; 右键 show in Finder打开info.plist所在目录)
打开 target > Build pha
se > Copy Bundle Resource/Compile Sources > 删除 info.plist
解决2.In Xcode, go to File->Project/Workspace settings.
Change the build system to Legacy Build system.
iOS报错not found for architecture armv7
armv7
1.导入报错提示的头文件。
操作步骤:
添加提示的.m文件
2.如果添加了运行还报错,就在报错的.m后面添加-fobjc-arc
操作步骤:
添加支持arc
3.如果还是不行,那就只能使用必杀技了
操作步骤:
前往文件夹
~/Library/Developer/Xcode/DerivedData
输入:~/Library/Developer/Xcode/DerivedData
找到里面自己工程的文件夹,把里面相关的内容删除即可。
不会影响工程的运行,只是一些缓存的数据和XCode配置工程的一些文件,下次运行还会生成。
如果是第三种解决办法有用的话,基本上是多人开发的时候SVN update更新下来的操作造成的。
用Xcode10跑之前的项目,也就报了一种类型的错误:Multiple commands produce。这个的原因是项目中使用第三方库,里面有README.md,README.txt,LICENSE,Info.plist之类的,而且是不止一个库中有,重复的这些文件,导致的报错。
解决方案: target > Build phase > Copy Bundle Resource/Compile Sources,删掉第三方库中重复的上述文件即可。
---------------------
Xcode 10 beta3 Error: Multiple commands produce
最近开发一直在使用Xcode10 beta版本的,今天升级到Xcode10 beta3,但是在编译项目时编译失败,报错内容:
屏幕快照 2018-07-09 上午10.28.06.png
error: Multiple commands produce'/Users/xiaoyuan/Library/Developer/Xcode/DerivedData/Boobuz-gnxeuntgkenwgdgycqnvabqubafh/Build/Products/Debug-iphoneos/Boobuz.app':1) Target'Boobuz'has create directorycommandwith output'/Users/xiaoyuan/Library/Developer/Xcode/DerivedData/Boobuz-gnxeuntgkenwgdgycqnvabqubafh/Build/Products/Debug-iphoneos/Boobuz.app'2) Thatcommanddepends oncommandinTarget'Boobuz': script phase “[CP] Copy Pods Resources”
引用简友guifu_tang的一句话原因是Xcode 10 默认使用的build system是New build system,与Xcode9不同导致。
第一种方法 不修改build system
分析build error 日志,错误发生在Copy Pods Resources,而且与output有关,应该是使用了cocoapods导致的,尝试删除该项目target-Copy Pods Resources-Output Files,成功解决问题。
选中项目target -> Build phase -> Copy Pods Resources -> Output Files -> 移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}-> Build
屏幕快照
网友评论