blog icon indicating copy to clipboard operation
blog copied to clipboard

Apple Developer Account: Appstore register

Open hhstore opened this issue 3 years ago • 8 comments

related:

  • [x] 苹果开发者账号: https://developer.apple.com/account/#/welcome
  • [x] #315 : 注册 Android 开发者账户
  • [x] #217
  • [x] #265

hhstore avatar Nov 27 '20 05:11 hhstore

开发者账号注册流程:

苹果:

  • [x] 苹果开发者账号注册流程比较繁琐.
  • [x] 当前年费用 ¥688.

警告 ❓❓❓❓

  • ✅ 苹果个人开发者账号, 只能实名认证1个.
  • ✅ 注意不要违反苹果的开发者条款(马甲包之类), 否则会封禁, 如1年.
  • ✅ 这样会导致你无法注册新的开发者账号.
  • ✅ 如果遇到被误封, 可以邮件+电话申诉. (可以中文提交申诉)
    • https://www.v2ex.com/t/588275
    • https://zhuanlan.zhihu.com/p/57123464

坑:

  • ✅ 应用提交后, 不要轻易改名字(会被当做马甲包, 误封账号).
    • 所以名字一定要先想好, 之后很难改名.
  • ✅ 也不要 个人账号 vs 企业账号 混用.
    • 应用从个人账号, 移交到 公司账号,也容易被误封.
  • ✅ 苹果现在封账号, 很变态. 神经病一样.

美区账号:

  • [x] 注册美区开发者账户: https://www.v2ex.com/t/704749
    • 为了避免国内监管问题, 建议走此
    • 国区买账号, 设置 admin 为美区 apple ID.

折中做法:


你可以用国区账号买开发者, 然后添加美区 ID 为 Admin 账户

TestFlight 发版流程:

  • [x] 花了一下午, 终于上架了一个版本.
  • [x] 总体上没有啥坑, 就是步骤相当相当繁琐. 参考下述所列的链接, 可以正常发版.
  • [x] flutter 发布 iOS 版本流程: https://flutterchina.club/ios-release/

细节:

  • [x] 官方开发者账号, 生成各种证书, app 的各种信息填写.
  • [x] 本地生成证书请求.
  • [x] flutter build ios
  • [x] xcode 更改一些配置项. 打包, 签名, 上传.
  • [x] 上传成功, 还要注意, 有 国家协议 点击确认, 否则不可用.
  • [x] App Store Connect 添加内测账号+发送邀请链接.

TestFlight 内测机制:

  • 有2种方式.
  • 一种是: 邮箱邀请+ app 兑换码(激活码)
  • 这种无需等待官方审核.
  • 另一种: 就是官方审核, 会提供下载链接. (看起来比较慢, 差不多半天过去了, 并没有审核通过)

发布到 Appstore testflight 的注意事项:

  • xcode 登录开发者账号
  • 生成签名证书的过程, 都可以在 xcode 里生成+签名
  • 不需要到 developer.apple.com 上手动添加.
  • 上传过程, 也是.

hhstore avatar Nov 27 '20 05:11 hhstore

苹果:

  • [x] https://www.jianshu.com/p/76200c825e28
  1. 创建苹果账号:
  • [x] https://appleid.apple.com/account?appId=632&returnUrl=https%3A%2F%2Fdeveloper.apple.com%2Faccount%2F
  1. 注册开发者账号:
  • [x] https://developer.apple.com/register/agree/?path=%2Faccount%2F
  1. 开发者账号首页:
  • [x] https://developer.apple.com/account/#/welcome
  1. 激活开发者身份:
  • https://developer.apple.com/programs/enroll/

  • https://developer.apple.com/enroll/app

  • https://apps.apple.com/us/app/wwdc/id640199958

  • https://developer.apple.com/cn/support/app-account/

  • iOS 手机 app 注册开发者账号.

  • Appstore 安装: apple developer 应用. 登录账号.

  • 特别提醒! Appstore 的账号, 要与待注册的开发者账号保持一致.

  • 否则支付年费(¥688) 有可能付错.

Developer ID 证书:

  • 这一步, 可以在 xcode 登录开发者账号的时候, 手动添加, 生成. (可跳过下面步骤)

  • https://developer.apple.com/cn/developer-id/

  • 创建证书: https://developer.apple.com/account/resources/certificates/add

  • https://zhuanlan.zhihu.com/p/30844150

本地操作:

  • https://help.apple.com/developer-account/#/devbfa00fef7

  • 本地生成+上传

  • 上传成功之后, 是需要把服务器生成的证书下载下来. development.cer

image

  • 下载:

image

  • 检查证书添加成功:

image

testflight:

  • https://developer.apple.com/cn/testflight/
  • https://testflight.apple.com/

ref:

  • https://developer.apple.com/cn/programs/enroll/
  • 开发工具下载: https://developer.apple.com/download/
  • 完整流程: http://blog.applicationloader.net/blog/zh/547.html

hhstore avatar Nov 27 '20 05:11 hhstore

iOS 获取: 手机 UDID:

  • 在线扫描获取: https://www.pgyer.com/tools/udid

开发者账号 - 注册一个 device:

  • https://developer.apple.com/account/resources/devices/list

App Store Connect

  • https://help.apple.com/app-store-connect/#/devcd5016d31
  • https://appstoreconnect.apple.com/

上传 app:

  • https://help.apple.com/app-store-connect/#/devb1c185036

flutter 发布 iOS 应用流程:

  • https://flutterchina.club/ios-release/

TestFlight

  • TestFlight 生成外部链接: https://www.jianshu.com/p/d18e9a4cdaaf

hhstore avatar Nov 27 '20 05:11 hhstore

iOS 上架 testflight 步骤:

  • xcode 更改 app 版本号.
  • build release 版本.

先决条件:

  • xcode: 登录 apple 开发者账号.
  • 其他密钥签名过程, 都处理完.

注意事项:

fix archvie error:

  • 我的回答: https://github.com/mono0926/barcode_scan2/issues/20#issuecomment-894608945
  • https://zhuanlan.zhihu.com/p/41854568
  • ios archive error Module 'barcode_scan2' not found

open ios/Runner.xcodeproj

I checked Runner/Pods is empty in Xcode sidebar.

drop Pods/Pods.xcodeproj into Runner/Pods.

"Valid architectures" to only "arm64" (I removed armv7 armv7s)

image

修改 app identifier:

  • 上传失败报错:

  • Failed to register bundle identifier The app identifier "com.xxx.xxx" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.

  • No profiles for 'com.xxx.xxx' were found Xcode couldn't find any iOS App Store provisioning profiles matching 'com.xxx.xxx'.

  • fix: https://github.com/flutter/flutter/issues/60849

  • 修改 info.plist, 注意该文件有2处 ID. 要改一致, 否则上传会失败.

执行

  • xcode 先打包:

image

apple connect:

  • xcode 上传包成功, 要等待几分钟, 网站上, 才会刷新出 APP 版本 .
  • 注意, 需要手动确认: 是否有加密. 然后, 才能被用户下载安装.

image

hhstore avatar Nov 27 '20 05:11 hhstore

APP 要二次确认:

  • 不确认, 不会公开给测试用户.
  • 一定要确认这一步.

image

  • 点击 管理, 确认.

image

  • 这里选择否, 因为是 demo 测试阶段. 暂时不管他.

  • 正式发布, 需要选择. 然后认真确认条款.

  • 如果点了 是. 会有一堆繁琐的条款确认. 如下. image

内部测试:

  • 提供测试人员的 apple id(邮箱), 然后在这个管理页面, 添加+发送邀请.
  • 对方确认邀请后, 就可以在 testflight 安装此测试 app.

image

外部公开测试链接:

  • 使用公开 testflight 的测试安装链接.
  • 这种方式, 需要等待官方审核, 要等大概1-2天. 时间不固定, 有时候快.
  • 好处是, 不需要用户提供 apple ID.

image

hhstore avatar Nov 27 '20 05:11 hhstore

1

hhstore avatar Nov 27 '20 05:11 hhstore

xxxxxx:

xxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxx
xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxx

hhstore avatar Nov 27 '20 05:11 hhstore

iOS Testflight FAQ:

q1: APP 上架 testflight 被拒绝:

  • 原因是使用了一项苹果服务: 但是没有包含到

image

  • 勾选该项: 保存.

image

  • fix: https://blog.csdn.net/xudailong_blog/article/details/100833211

# xcode 设置: 

DISABLE_PUSH_NOTIFICATIONS=1

hhstore avatar Oct 18 '21 02:10 hhstore