有效的配置文件不适用于 git 存储库 [英] Valid Provisioning Profile not working for git repository

查看:47
本文介绍了有效的配置文件不适用于 git 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了一个配置文件(分发),其中包括推送通知等功能......流程顺利,应用程序被苹果接受,一切在生产中运行良好.随着应用程序的发展,功能增加并在以下版本中进行了复杂的编码,因此为了安全起见,我想为应用程序维护 git 存储库.

I just created a provisioning profile(distribution) which includes features like push notifications etc... the flow went smoothly and app accepted by apple, every thing is working fine in the production. As app going forward the features increased and going complex coding in the following versions so for safe side i thought to maintain git repository for the app.

Git 实现已完成,并在开发中添加了新功能.即将测试部分一切正常,包括推送通知.

Git implementation is done and new features added in the development. Coming to testing part everything working fine including push notifications.

但是在通过 Xcode 7.1 提交到应用商店时,我得到了(没有找到与Applications/project_name.app"匹配的配置文件).

But while submitting to the app store via Xcode 7.1, i am getting (no matching provisioning profiles found for "Applications/project_name.app").

我已经尝试了堆栈溢出的所有建议,但没有结果.据我了解,我只是更改了版本号并再次上传了旧项目(实施 Git 之前的项目,即 App Store 的实时版本),它正在成功上传.

I have tried all the suggestions from stack over flow but no result. For my understanding i just changed version number and uploaded old project again(the project before implementing Git i.e, live version of App store), it is uploading successfully.

我没有得到配置文件的确切问题

I am not getting what exact problem with the provisioning profiles

我的观察:配置文件没有过期/无效.如果过期/无效,它不应该允许我再次上传我的旧项目.

My Observation: The provisioning profiles are not expired/invalid. if expired/invalid it should not allow me to upload my old project again.

推荐答案

唯一重要的配置文件是 ~/Library/MobileDevice/Provisioning Profiles/ 中的文件(不是任何可能在您的存储库或本地目录或 Apple 开发者网站上)

The only provisioning files that matter are the ones in ~/Library/MobileDevice/Provisioning Profiles/ (not any that might be in your repo or local directories or on the Apple developer site)

我使用 fastlane 的 sigh 命令(特别是 sigh manage)来确保这个文件夹是正确的.https://docs.fastlane.tools/

I use fastlane's sigh command (specifically sigh manage) to make sure this folder is correct. https://docs.fastlane.tools/

一件简单的事情

  1. 将所有文件从 ~/Library/MobileDevice/Provisioning Profiles/ 复制到其他地方
  2. 只放入正确的 App Store 分发配置文件(以便这是那里唯一的 .mobileprovision 文件)
  3. 归档 App Store 版本

如果这不起作用,那么您的项目可能设置错误(或者您的配置文件有误).

If this doesn't work, then your project might be set up wrong (or you are wrong about your profile file).

这篇关于有效的配置文件不适用于 git 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆