私は多くの、多くの、多くの時間をこの問題に費やしました。
と私はそれがある。ここコルドバ after_prepare XCodeを7に私の問題を解決しフックと8 を作ってみた...
"use strict";
var fs = require('fs');
var path = require('path');
var xcode = require('xcode');
module.exports = function (context)
{
var encoding = 'utf-8';
var plist = fs.readFileSync(path.resolve(__dirname, "../GoogleService-Info.plist"), encoding);
fs.writeFileSync(path.resolve(__dirname, "../platforms/ios/GoogleService-Info.plist"), plist, encoding);
var projectPath = path.resolve(__dirname, "../platforms/ios/APP NAME.xcodeproj/project.pbxproj");
var pbxFile = fs.readFileSync(projectPath, encoding);
var proj = new xcode.project(projectPath);
proj = proj.parseSync();
var pbxGroupKey = proj.findPBXGroupKey({
name: "Resources"
});
proj.removeResourceFile('GoogleService-Info.plist', {}, pbxGroupKey);
proj.addResourceFile('GoogleService-Info.plist', {}, pbxGroupKey);
proj.addBuildProperty('"CODE_SIGN_IDENTITY[sdk=iphoneos*]"', '"iPhone Distribution"', 'Release');
proj.addBuildProperty('DEVELOPMENT_TEAM', 'XXXXXXXX', 'Release');
proj.addBuildProperty('PROVISIONING_PROFILE', "XXXXXXXX-XXXXXXXX-XXXX-XXXX-XXXXXXXX", 'Release');
proj.addBuildProperty('PROVISIONING_PROFILE_SPECIFIER', '"NAME OF PROFILE"', 'Release');
proj.addBuildProperty('TARGETED_DEVICE_FAMILY', '"1,2"', 'Release');
proj.addTargetAttribute("DevelopmentTeam", "XXXXXXXX");
var pushEntitlement = "{com.apple.Push ={enabled = 1;};}";
proj.addTargetAttribute("SystemCapabilities", pushEntitlement);
/*var attributes = proj.getFirstProject()['firstProject']['attributes'];
if (attributes['TargetAttributes'] === undefined)
{
attributes['TargetAttributes'] = {};
}
var target = proj.getFirstTarget();
if (attributes['TargetAttributes'][target.uuid] === undefined)
{
attributes['TargetAttributes'][target.uuid] = {};
}
attributes['TargetAttributes'][target.uuid]["SystemCapabilities"] = "{com.apple.Push ={enabled = 1;};}";
*/
fs.writeFileSync(projectPath, proj.writeSync());
fs.writeFileSync(path.resolve(__dirname, "../platforms/ios/APP NAME/Resources/GoogleService-Info.plist"), plist, encoding);
fs.writeFileSync(path.resolve(__dirname, "../platforms/ios/APP NAME/Resources/Resources/GoogleService-Info.plist"), plist, encoding);
};
ちょうどプロビジョニング、あなたのAPPの名前を更新することを忘れないでくださいプロフィール名とチームID。