Xcode won't recognize my new provisioning profile

前端 未结 9 2081
情歌与酒
情歌与酒 2020-12-15 05:15

My app\'s development provisioning profile expired a couple of weeks ago, so I went to the provisioning portal to get a fresh new one. After obtaining it, I visited the Xcod

9条回答
  •  醉酒成梦
    2020-12-15 05:46

    To add to the solution above, you can use the lovely xcodeproj gem to help with stuff like this. Note, it does convert your OpenStep key = value; -style plist to XML. Note: I have found that Xcode changes it back if you make project file changes in Xcode later. Either style of file builds fine either in Xcode or from the command line. For a sample of how I use it

    project = Xcodeproj::Project.new('Foo.xcodeproj')
    csi_key = 'CODE_SIGNING_IDEDNTITY'
    project.targets.each do |target|
      target.build_configurations.each do |conf|
        conf.build_settings[csi_key] = 'iPhone Developer: Cool Dood (XYZ123)' unless conf.build_settings[csi_key] == nil
      end
    end
    

    Here's a gist of how I use it: https://gist.github.com/82times/5594887

提交回复
热议问题