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

bug: ionic build ios not working on Mac OS 10.11 #4414

Closed
stefankp opened this issue Sep 23, 2015 · 4 comments
Closed

bug: ionic build ios not working on Mac OS 10.11 #4414

stefankp opened this issue Sep 23, 2015 · 4 comments

Comments

@stefankp
Copy link

Type: bug

Platform: ios 9 webview

ionic build ios does not work anymore, therefore ionic run ios and ionic emulate ios also don't work, meaning I cannot run the app through the ionic CLI. The command runs for a few seconds and then exits without any logs or error messages.

ionic build android still works fine. Building and deploying the app to the simulator or phone works through Xcode.

I am on Mac OS 10.11.1, with Xcode 7 and a complete fresh ionic install.

@stefankp stefankp changed the title bug: ionic build ios no bug: ionic build ios not working on Mac OS 10.11 Sep 23, 2015
@mpm
Copy link

mpm commented Sep 23, 2015

I have the same issue :D according to the cordova docs, the build task runs two commands, prepare and compile. The one that breaks (returns without any error message) is

ionic prepare ios

while

ionic compile ios

compiles the stuff that is there (without prepare, the plugins are missing though). I'm trying to understand what the prepare command is doing and it must be somewhere in this repository IMHO, but I couldn't locate it yet.

@mpm
Copy link

mpm commented Sep 23, 2015

@stefankp and me tracked it down to this line in the xcode npm package. I don't fully understand the fork magic going on there, but the worker object never receives the message message (or whatever is this).

Therefore it can never trigger the error neither the end message, which would finally execute the function in cb (and this function will resolve a promise that resolves a ton of other promises that are currently preventing the ionic prepare build command from succeeding.

So, if anybody knows a bit more about the fork magic going in on the xcode package, please explain where to dig down- where is the message event triggered?

PS:
I can build the same project where we spotted the error on a different machine, running the same xcode version but OS X 10.10.5. The problem seems to occur under OS X 10.11.0 and 10.11.1.

@mpm
Copy link

mpm commented Sep 23, 2015

Alright, we digged down right to the bottom and the short version is:

This issue got fixed in the node-xcode package.

Ionic depends on xcode 0.6.7, so this should be bumped to 0.8.0 (but the 0.8.0 version we got earlier didn't contain this patch yet).

Anyway, everybody having the same issue, just open parseJob.js in your local npm repository and delete the process.exit() in Line 12.

We will post more helpful and proper instructions after we recovered from this exhausting investigation.

(Related: alunny/node-xcode#61).

@mhartington
Copy link
Member

This issue was moved to ionic-team/ionic-cli#593

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants