Skip to content

iOS发布与调试 #46

Open
Open
@bingoogolapple

Description

@bingoogolapple
Owner

发布

  1. keychain 钥匙串访问
  2. 证书助理
  3. 从颁发机构请求证书
  4. 邮箱、常用名、保持到磁盘 CertificateSigningRequest.certSigningRequest(电脑唯一标识,是为了生成cer文件)
  5. https://developer.apple.com/account/ios/certificate/certificateList.action 添加
  6. 上传 CertificateSigningRequest.certSigningRequest
  7. 下载 ios_distribution.cer(保持了电脑可以发布程序,但是得结合apple id生成mobileprovision文件),双击安装
  8. https://developer.apple.com/account/ios/identifiers/bundle/bundleList.action 添加IDs
  9. https://developer.apple.com/account/ios/profile/profileList.action 添加provision
  10. distribution app store
  11. 选择第8步创建的id
  12. Select certificates 选择第6步生成的(看时间来区别)
  13. Profile Name 随便输,公司名也行
  14. 下载 mobileprovision 文件(包含了哪个电脑可以发布哪个程序) 双击

(如果刚到公司发现项目不能运行,在 code singing 中选择 don’t code sign,或者改成跟自己电脑相关的证书,打包一定要选择真机,如果没有真机也要选择 iOS Device)

调试

  1. 添加测试设备,可以 通过 fir 获取 UDID
  2. 添加 Ad Hoc

只能生成两个 cer 证书,个人账号 100 个人真机调试

Activity

bingoogolapple

bingoogolapple commented on Feb 2, 2019

@bingoogolapple
OwnerAuthor

Flutter 打包 IPA 报错 Could not find an option named "track-widget-creation"

flutter build ios --release
flutter build apk
bingoogolapple

bingoogolapple commented on Feb 14, 2019

@bingoogolapple
OwnerAuthor

清除所有的 mobileprovision

cd ~/Library/MobileDevice/Provisioning\ Profiles/
rm *.mobileprovision
rm ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision

删除 iOS archive

cd ~/Library/Developer/Xcode/Archives
rm -rf ~/Library/Developer/Xcode/Archives/*
bingoogolapple

bingoogolapple commented on Feb 15, 2019

@bingoogolapple
OwnerAuthor

iTunes 获取 UDID

1.打开iTunes,点击设备。
2.选中“摘要”标签。
3.找到序列号,点击序列号就会出现 UDID,单击右键 Copy

bingoogolapple

bingoogolapple commented on Feb 15, 2019

@bingoogolapple
OwnerAuthor

切换 mode 的崩溃问题,在第一次配置好工程或者切换 mode 的过程中,可能会遇到以下的崩溃问题:

Check failed: vm. Must be able to initialize the VM.

不同模式下的产物没有清理使用了缓存,解决办法是删除掉所有 build 文件的内容再全量编译一次就可以了

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bingoogolapple

        Issue actions

          iOS发布与调试 · Issue #46 · bingoogolapple/bingoogolapple.github.io