QMUI / LookinServer

Free macOS app for iOS view debugging.
https://lookin.work
MIT License
2.68k stars 402 forks source link

Jekins 打包一直失败 #3

Closed zhixingxi closed 2 years ago

zhixingxi commented 5 years ago

1、bitcode 修改这 NO也失败 2、移除这个framework 就正常打包

hughkli commented 5 years ago

请问有没有什么失败日志看一下?确定是和 bitcode 相关吗?目前 LookinServer 确实还不支持 bitcode

zhixingxi commented 5 years ago

日志看着跟bitcode和这个库无关,但是移除这个库就正常了。原来的日志删了,下次打包再过来贴下日志。

zhixingxi commented 5 years ago

Error Domain=IDEProvisioningErrorDomain Code=9 ""LeftEar.app" requires a provisioning profile with the Push Notifications feature." UserInfo={NSLocalizedDescription="left.app" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

EXPORT FAILED

Build step '执行 shell' marked build as failure 由于构建失败而跳过归档 [PostBuildScript] - Executing post build scripts. [PostBuildScript] - Build does not have any of the results [SUCCESS]. Did not execute build step #0. No emails were triggered. Finished: FAILURE

这是失败日志,什么都不做,移除这个库就正常。

hughkli commented 5 years ago

额……没有见过类似的,看不太懂……

也许试一下换成通过 CocoaPods 之类的方式引入这个 Framework? 或者在 jekins 打包时不引入这个 Framework? 或者看看你们能不能搜索到你们的这个错误日志的根本原因是 LookinServer 的哪里设置有问题,然后告诉我们,我们来修改 LookinServer.framework

jseanj commented 5 years ago

error: exportArchive: Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

" UserInfo={NSLocalizedDescription=Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

hughkli commented 5 years ago

error: exportArchive: Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

" UserInfo={NSLocalizedDescription=Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

看错误第一行提到了 bitcode,而我们昨天刚刚发布了支持 bitcode 的 LookinServer (0.9.4),你可以更新一下试试能否解决该问题:

如果是使用 CocoaPods 则运行 pod update 即可。 如果是手动嵌入则下载 https://cdn.lookin.work/download/framework/LookinServer-0-9-4.zip 并替换项目里的原 framework 文件即可。

(注意,仅发布了 LookinServer 的更新,没有发布 Lookin 客户端的更新,因此在 Lookin 客户端里点击“检查更新”仍然会提示 0.9.3 是最新版本客户端,这是正常的。)

jseanj commented 5 years ago

error: exportArchive: Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0) Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0) " UserInfo={NSLocalizedDescription=Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

看错误第一行提到了 bitcode,而我们昨天刚刚发布了支持 bitcode 的 LookinServer (0.9.4),你可以更新一下试试能否解决该问题:

如果是使用 CocoaPods 则运行 pod update 即可。 如果是手动嵌入则下载 https://cdn.lookin.work/download/framework/LookinServer-0-9-4.zip 并替换项目里的原 framework 文件即可。

(注意,仅发布了 LookinServer 的更新,没有发布 Lookin 客户端的更新,因此在 Lookin 客户端里点击“检查更新”仍然会提示 0.9.3 是最新版本客户端,这是正常的。)

升级之后还是报这个错误

zhixingxi commented 5 years ago

额……没有见过类似的,看不太懂……

也许试一下换成通过 CocoaPods 之类的方式引入这个 Framework? 或者在 jekins 打包时不引入这个 Framework? 或者看看你们能不能搜索到你们的这个错误日志的根本原因是 LookinServer 的哪里设置有问题,然后告诉我们,我们来修改 LookinServer.framework

虽然我的报错与 bitcode 无关,但是用了新版本之后就打包成功了。

hughkli commented 5 years ago

error: exportArchive: Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0) Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0) " UserInfo={NSLocalizedDescription=Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

看错误第一行提到了 bitcode,而我们昨天刚刚发布了支持 bitcode 的 LookinServer (0.9.4),你可以更新一下试试能否解决该问题: 如果是使用 CocoaPods 则运行 pod update 即可。 如果是手动嵌入则下载 https://cdn.lookin.work/download/framework/LookinServer-0-9-4.zip 并替换项目里的原 framework 文件即可。 (注意,仅发布了 LookinServer 的更新,没有发布 Lookin 客户端的更新,因此在 Lookin 客户端里点击“检查更新”仍然会提示 0.9.3 是最新版本客户端,这是正常的。)

升级之后还是报这个错误

这。。。我搜了一下你们的这个报错信息,看看能不能试一下排名第一的那个答案的解决方法? https://stackoverflow.com/questions/46404236/failed-to-verify-bitcode-while-exporting-archive-for-ad-hoc-distribution-tried

Formerly commented 5 years ago

这边也一样报错了,即使升级到了0.9.4版本.希望可以尽快解决.

zhixingxi commented 5 years ago

这边也一样报错了,即使升级到了0.9.4版本.希望可以尽快解决.

ExportOptions.plist 中是否有这个键值对,如果没有可以加上试试。重启一下打包的电脑可能也行。

compileBitcode false

Formerly commented 5 years ago

这边也一样报错了,即使升级到了0.9.4版本。希望可以尽快解决。

ExportOptions.plist中是否有这个键值对,如果没有可以加上试试。重启一下打包的电脑可能也行。

compileBitcode为false 全局没搜到这个文件. ExportOptions.plist.

image

image

当前本地 pods 版本为

zhixingxi commented 5 years ago

ExportOptions.plist

ExportOptions.plist 这个文件是 Jekins 打包用的,如果你是用 jekins 打包应该有这个文件,xcode 目录下没有的话到文件夹里面看看。

Formerly commented 5 years ago

ExportOptions.plist

ExportOptions.plist 这个文件是 Jekins 打包用的,如果你是用 jekins 打包应该有这个文件,xcode 目录下没有的话到文件夹里面看看。

并没有这个文件噢.即使是全局电脑搜索这个.我们目前使用的Jenkins + Fastlane方式来处理的打包.而我Fastlane 里面的配置文件配置 include_bitcode: false, 是关闭的了bitcode的. 也尝试过通过指定LookinServer 来关闭bitcode,也是没有效果的,但是移除该库,打包正常..

hughkli commented 5 years ago

LookinServer 现已开源,可以下载项目源码并更改:https://github.com/QMUI/LookinServer/tree/master/SourceCode

下载并打开 “Lookin.xcodeproj” 后,你会看到 “LookinServer” 和 “LookinServer-Universal” 两个 target,选择 “LookinServer-Universal” 并编译,编译完成后项目文件夹会被自动打开,然后你就会看到新生成的 “LookinServer.framework” 文件。

如果能成功解决该问题,可以向该项目 Pull Request,感谢!

SAGESSE-CN commented 5 years ago

error: exportArchive: Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

" UserInfo={NSLocalizedDescription=Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/y2/sv9h0twn2cl4y20k0dctxwgc0000gn/T/LookinServerg6YW_x/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

能不能提供一下脚本指令信息

yanmingLiu commented 5 years ago

`Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/6l/jl0k4wrd5h9_cdfs4617wkp80000gn/T/LookinServerbs866I/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

" UserInfo={NSLocalizedDescription=Failed to verify bitcode in LookinServer.framework/LookinServer: error: Linker option verification failed for bundle /var/folders/6l/jl0k4wrd5h9_cdfs4617wkp80000gn/T/LookinServerbs866I/LookinServer.armv7.xar (unrecognized arguments: -platform_version iOS 8.0.0 13.0.0)

}

EXPORT FAILED ` fastlane打development debug包也报错;但是打上传appstore release包是好的

ZhangTonghai commented 5 years ago

使用pod集成最新版本,同样遇到这个问题,发现这个框架默认打开了bitcode,因为我们的工程本身不支持bitcode,所以我再podfile中做了如下处理:所有pod集成的框架ENABLE_BITCODE配置为NO,目前可以解决我的问题。 pod版本为1.7.3

post_install do |installer|
    installer.pod_target_subprojects.each do |project|
      project.build_configurations.each do |config|
        config.build_settings['ENABLE_BITCODE'] = 'NO'
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
      project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['ENABLE_BITCODE'] = 'NO'
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
        end
      end
    end
  end
Lidalu commented 5 years ago

求问最后是怎么解决的?我也遇到了同样的问题。

ZhangTonghai commented 5 years ago

求问最后是怎么解决的?我也遇到了同样的问题。

就是我贴出来的那段加在podfile里,我个人这样打包是没问题的

Lidalu commented 5 years ago

求问最后是怎么解决的?我也遇到了同样的问题。

就是我贴出来的那段加在podfile里,我个人这样打包是没问题的

谢谢 我按照你的,打包Ad Hoc包,最后一步Export ipa还是会报错。 最后在ExportOptionsPlist.plist文件中设置compileBitcode=false 搞定了。

cherishloveyou commented 5 years ago

@hughkli 这个问题好像是因为项目本身不支持bitcode,然后引入lookinServer后 在Archive阶段是成功的,但是如果用fastlane的gym脚本生成.ipa的过程是失败的,导致自动打包失败

hughkli commented 5 years ago

@hughkli 这个问题好像是因为项目本身不支持bitcode,然后引入lookinServer后 在Archive阶段是成功的,但是如果用fastlane的gym脚本生成.ipa的过程是失败的,导致自动打包失败

@cherishloveyou 要怎么样设置才可以支持 bitcode 呢?如下图这样设置是不够的吗?

屏幕快照 2019-11-06 15 21 05
Dcell commented 3 years ago