xcode打ipa包

unity导出xcode工程之后,xcode打开Unity-iphone.xcodeproj;

1.导入描述文件_dev.mobileprovision;
在这里插入图片描述
在这里插入图片描述
导入描述文件_dev.mobileprovision;

在这里插入图片描述

2.导入证书 xxx.p12

先双击导入苹果root证书
在这里插入图片描述

双击自己的 P12证书导入,

在这里插入图片描述
打开钥匙串,发现报红
在这里插入图片描述

展开之后双击,
在这里插入图片描述

修改权限保存
在这里插入图片描述

然后直接archive就可以了
在这里插入图片描述

之后有个报错
note: Building targets in dependency order
warning: Run script build phase ‘Run Script’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘UnityFramework’ from project ‘Unity-iPhone’)
/Users/jenkins/Documents/xcode/Debug/Unity-iPhone.xcodeproj: error: Provisioning profile “2001_dev” doesn’t include the currently selected device “cnsha-004-mac” (identifier 00008112-0011E). (in target ‘Unity-iPhone’ from project ‘Unity-iPhone’)
** ARCHIVE FAILED **

需要在命令行的后边加上-destination ‘generic/platform=iOS’ 指定编译平台就可以了。
xcodebuild archive -project /Users/jenkins/Documents/xcode/Debug/Unity-iPhone.xcodeproj -scheme Unity-iPhone -archivePath /Users/jenkins/Documents/xcarchive/Debug/my.xcarchive -destination ‘generic/platform=iOS’

   xcodebuild -exportArchive -archivePath /Users/jenkins/Documents/xcarchive/Debug/my.xcarchive -exportPath /Users/jenkins/.jenkins/workspace/Debug -exportOptionsPlist /Users/jenkins/Documents/xcode/ExportOptions.plist 

ExportOptions.plist 导出文件在用xcode编译成功之后就会有了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Xcode 是苹果公司开发的集成开发环境(IDE),用于开发iOS、macOS和watchOS等操作系统的应用程序。上传IPA文件是指将已经完成的应用程序打IPA文件,并通过Xcode上传到App Store上。 首先,我们需要确保应用程序的开发者账号和相关证书已经配置好,并且应用程序的Bundle Identifier与配置文件中的一致。接下来,我们可以按照以下步骤来上传IPA文件: 1. 打开Xcode,选择菜单栏中的“Product”(产品)选项,然后选择“Archive”(归档)。 2. Xcode将会对项目进行构建和打,并且显示Archive Manager(归档管理器)界面。 3. 在Archive Manager界面中,选择你想要上传的归档文件,然后点击右侧的“Upload to App Store”(上传到App Store)按钮。 4. Xcode将会启动Application Loader(应用程序加载器),并弹出一个对话框,要求你提供App Store Connect(应用商店连接)的凭据信息。 5. 输入你的苹果开发者账号的用户名和密码,并选择相关的Team和Bundle Identifier。 6. 上传过程可能需要一些时间,具体时间根据你的网络连接速度和IPA文件的大小而定。 7. 上传完成后,Xcode会显示上传成功的信息,并在App Store Connect中创建新的应用版本。 总结起来,通过Xcode上传IPA文件是一个相对简单的过程,只需确保开发者账号的配置正确,并按照指引逐步操作即可完成上传。这样就可以将已经完成的应用程序上传到App Store上供用户下载和使用了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值