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-12933] When debugging from Studio, we only force a rebuild for no... #3926

Merged
merged 1 commit into from
Mar 11, 2013
Merged
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: 9 additions & 4 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1207,12 +1207,17 @@ build.prototype = {
plistExists = afs.exists(dest);

if (!plistExists || fs.readFileSync(dest).toString() != plist) {
if (!plistExists) {
this.logger.info(__('Forcing rebuild: debugger.plist does not exist'));
if (this.target != 'simulator') {
if (!plistExists) {
this.logger.info(__('Forcing rebuild: debugger.plist does not exist'));
} else {
this.logger.info(__('Forcing rebuild: debugger settings changed since last build'));
}
this.forceRebuild = true;
} else {
this.logger.info(__('Forcing rebuild: debugger settings changed since last build'));
// write the debugger.plist to the app dir now since we're skipping Xcode and the pre-compile phase
fs.writeFileSync(path.join(this.xcodeAppDir, 'debugger.plist'), plist);
}
this.forceRebuild = true;
fs.writeFile(dest, plist, callback());
} else {
callback();
Expand Down