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

Automatically opens in XCode 5.1 #1

Closed
masterrr opened this issue Aug 10, 2014 · 5 comments
Closed

Automatically opens in XCode 5.1 #1

masterrr opened this issue Aug 10, 2014 · 5 comments

Comments

@masterrr
Copy link

If both XCode 5.1 / 6 (beta 5) are installed, but the first one is opened, running PlayNow will result in opening a playground in old 5.1. Any ways to fix it?

@marcboquet
Copy link
Owner

I'm relying on the open command, I think it should have the same effect as double-clicking a storyboard in Finder.
I found that if I have Xcode 5 open it will open the storyboards in it, otherwise they open in Xcode 6.
Maybe changing the default app under "Get Info > Open With" can help in your case?

@masterrr
Copy link
Author

@apalancat what do you think on using -b/-a flags? https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/open.1.html

@marcboquet
Copy link
Owner

Unfortunately I don't think that would work, both Xcode versions have the same com.apple.dt.Xcode bundle identifier, and I don't want to hardcode 'Xcode6-Beta5.app' because I'd have to change the app every time a new Xcode beta comes out.
If you have Xcode 6 running does it still try to open the playgrounds in Xcode 5?

@ashfurrow
Copy link

Yeah, I'm thinking just using open should be sufficient. It's kind of a pain during these betas, but will be great once Xcode 7 or whatever comes out, too.

@marcboquet
Copy link
Owner

I guess it should be fine yes. Thanks, I'll close it then, @masterrr feel free to reopen it if you think of a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants