Valid Provisioning Profile not working for git repository

佐手、 提交于 2019-12-08 11:54:15

问题


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 implementation is done and new features added in the development. Coming to testing part everything working fine including push notifications.

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

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.


回答1:


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)

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

One easy thing to do

  1. Copy all of the files from ~/Library/MobileDevice/Provisioning Profiles/ to some other place
  2. Put in just the correct App Store distribution profile (so that this is the only .mobileprovision file there)
  3. Archive an App Store build

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



来源:https://stackoverflow.com/questions/40719362/valid-provisioning-profile-not-working-for-git-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!