Skip to content

从 archive 导出 ipa 包时失败 #1

Description

@qiubaiying

十分感谢你提供的脚本!

我的Xcode版本是8.3和8.3.1
系统版本10.12.1

我从 archive 导出 ipa 包时发生了失败

2017-04-25 14:43:08.553 xcodebuild[31914:2514903] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/gq/mq8734y16zg2x8g_d10bbzvc0000gn/T/HLStore_2017-04-25_14-43-08.552.xcdistributionlogs'.
1.2.840.113635.100.1.61
2017-04-25 14:43:11.630 xcodebuild[31914:2514903] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fc6226e2e60>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}
error: exportArchive: No applicable devices found.

Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}

** EXPORT FAILED **

google 了解决方法是

先运行下面的脚本

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
rvm use system

再导出 ipa包

不过在 *.sh 中rvm use system时,会出现下面的错误

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.

google了很久,这个问题到现在还是很好的解决方法。
只能手动在终端中输入脚本进行打包~
希望能交流解决这个问题

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions