简体   繁体   English

错误:没有配置概要文件与xcode构建匹配

[英]Error: no provisioning profile matches xcode build

BuilSettings [REFERENCE IMAGE1 ][1] I'm creating an script to automate ios build to generate .ipa ... Below is my script, BuilSettings [REFERENCE IMAGE1 ] [1]我正在创建一个脚本以自动执行ios构建以生成.ipa ...下面是我的脚本,

# xcodebuild -workspace "project.xcworkspace" -scheme "Schemename" clean

# xcodebuild -workspace "project.xcworkspace" -scheme "Schemename" build

# xcodebuild archive -workspace "project.xcworkspace" -scheme "schemename" -archivePath "project.xcworkspace.xcarchive"

# xcodebuild -exportArchive -archivePath "project.xcworkspace.xcarchive" -exportPath "project.xcworkspace" -exportFormat ipa -exportProvisioningProfile "Digi Form Development": *"

while executing above script getting an error of, 在执行上述脚本时出现错误,

--- xcodebuild: WARNING: -exportArchive without -exportOptionsPlist is deprecated error: no provisioning profile matches 'Digi Form Development: *' ** EXPORT FAILED ** --- xcodebuild:警告:不使用-exportArchive而不使用-exportOptionsPlist错误:没有配置文件与'Digi Form Development:*'**导出失败**

Since I'm new to this ios build deployment using xcode cli kindly help me on to correct my problems, 由于我不熟悉使用xcode cli进行此ios构建部署,因此请帮我解决问题,

You need to create a exportOptions.plist file, then add the command line flag as so: 您需要创建一个exportOptions.plist文件,然后按以下方式添加命令行标志:

-exportOptionsPlist exportOptions.plist

The export options plist should look something like the following: 导出选项plist应该类似于以下内容:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>compileBitcode</key>
  <false/>
  <key>method</key>
  <string>ad-hoc</string>
  <key>provisioningProfiles</key>
  <dict>
    <key>my.bundle.idenifier</key>
    <string>My Provisioning Profile Name</string>
  </dict>
  <key>signingCertificate</key>
  <string>iPhone Distribution</string>
  <key>signingStyle</key>
  <string>manual</string>
  <key>stripSwiftSymbols</key>
  <true/>
  <key>teamID</key>
  <string>YOURTEAMID</string>
  <key>thinning</key>
  <string>&lt;none&gt;</string>
</dict>
</plist>

Note that signing style can be manual or automatic. 请注意,签名样式可以是手动或自动的。 If you are explicitly setting the provisioning profile, which I tend to do, use manual and specify the provisioning profile name explicitly. 如果要明确设置配置文件配置文件(我倾向于这样做),请使用手册并明确指定配置文件配置文件名称。 If automatic, Xcode will try to automatically find a matching profile. 如果为自动,Xcode将尝试自动查找匹配的配置文件。

For the method field, the options are: development, ad-hoc, distribution and enterprise. 对于方法字段,选项包括:开发,临时,分发和企业。

Here is a link with a more general description on this feature: http://devcenter.bitrise.io/tips-and-tricks/xcodebuild-export-options/ 以下是对此功能进行更一般描述的链接: http : //devcenter.bitrise.io/tips-and-tricks/xcodebuild-export-options/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM