Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-19320] Renamed the Apple Watch template so that we can actuall… #7011

Merged
merged 1 commit into from
Aug 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2853,6 +2853,16 @@ iOSBuilder.prototype.createXcodeProject = function createXcodeProject(next) {
this.logger.trace(__('No extensions to add'));
}

// inject the team
var team = cli.tiapp.ios && cli.tiapp.ios.team;
if (team) {
pbxProject.attributes || (pbxProject.attributes = {});
pbxProject.attributes.TargetAttributes || (pbxProject.attributes.TargetAttributes = {});
pbxProject.targets.forEach(function (id) {
pbxProject.attributes.TargetAttributes[id].DevelopmentTeam = team;
});
}

// if any extensions contain a watch app, we must force the min iOS deployment target to 8.2
if (this.hasWatchAppV1 || this.hasWatchAppV2orNewer) {
// TODO: Make sure the version of Xcode can support this version of watch app
Expand Down Expand Up @@ -2907,6 +2917,8 @@ iOSBuilder.prototype.writeEntitlementsPlist = function writeEntitlementsPlist()
var entitlementsFile = path.join(this.projectDir, 'Entitlements.plist'),
dest = path.join(this.buildDir, 'Entitlements.plist');

delete this.buildDirFiles[dest];

if (fs.existsSync(entitlementsFile)) {
this.logger.info(__('Found custom entitlements: %s', entitlementsFile.cyan));
this.copyFileSync(entitlementsFile, dest);
Expand Down Expand Up @@ -2953,7 +2965,6 @@ iOSBuilder.prototype.writeEntitlementsPlist = function writeEntitlementsPlist()
} else {
this.logger.trace(__('No change, skipping %s', dest.cyan));
}
delete this.buildDirFiles[dest];
};

iOSBuilder.prototype.writeInfoPlist = function writeInfoPlist() {
Expand Down
2 changes: 1 addition & 1 deletion iphone/cli/hooks/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ exports.init = function (logger, config, cli) {
} else if (err.indexOf('0xe8008016') !== -1) {
details = __('Chances are there is an issue with your entitlements. Verify the bundle IDs in the generated Info.plist file.');
} else if (err.indexOf('0xe8008016') !== -1) {
details = __('Your provisioning profile probably has some entitlements that are no enabled in the Entitlements.plist');
details = __('Your provisioning profile probably has some entitlements that are not enabled in the Entitlements.plist file.');
}
next && next(new appc.exception(err, details));
next = null;
Expand Down
Binary file added node_modules/ioslib/lib/sim_focus.scpt
Binary file not shown.
Binary file added node_modules/ioslib/lib/sim_hide.scpt
Binary file not shown.
8 changes: 8 additions & 0 deletions node_modules/titanium-sdk/lib/tiappxml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/titanium-sdk/tests/resources/tiapp2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.