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
Command PhaseScriptExecution failed with a nonzero exit code ( on version 0.13.0) #664
Comments
I think you have to delete all the |
@sovannarithsok - Yep, if you look for the |
@designatednerd @victormihaita I already tried to replace a new script as below:
And also delete node module in source project, delete Derived data, clean project but unlucky I still get an error with build.
|
So that appears to be a different error - |
@designatednerd I didn't change any code in my |
Just trying to narrow down what might be causing the problem! Are you able to tell which |
@debergalis I have 1
Then build failed with EventInput above. |
What happens if you remove the |
@designatednerd after remove In my |
Yeah that's damned weird - I'll ping some colleagues and see if they've got any ideas as well |
@sovannarithsok What does your schema look like? Does your |
@martijnwalraven Sure it contains
|
Hm - that's odd. are you using |
@designatednerd in apollo documentation I see only |
🤦♀️ |
@sovannarithsok Could you post the |
Iam facing this error after i updated pod to latest version |
@sam961 I recall getting something like this when I wasn't passing the correct path to my |
the schema.json is inside the folder of the ios project Ex: Desktop/MainProject/A/schema.json should i add path ? |
@sam961 The path should be relative to wherever you're running the CLI from. So if |
I a screenshot for the path ... i added the path as u stated but i got this |
I added the schema to the root ... but i dont know why iam getting this error too something related to a fragment ,,, but i didnt changed anything from old version |
It looks like it's looking specifically for a file called ^This is all assuming you're running the script from the |
With the stuff you just posted it does seem like it's still not quite finding the schema properly. Can you please paste in your exact build script? |
This is from the documentation |
I removed the node_modules from the project then i run this command : |
OK, just trying to narrow down possibilities of what's happening. If you're still getting that error when your And the pod has to be 0.13.0 for those commands to work, otherwise it looks for an older version and installs it locally. You may want to try deleting the |
node_modules is deleted from the project .... could these node_modules be in another location ? |
If you've installed globally and the build script is finding it, then yes, they're in another location but you don't need to delete them. Are you able to build with v0.13.0? If not, which error are you receiving? |
Actually i cannot figure what is going on I downloaded a new schema too ... What should i do now ? |
Note : the graphql files are inside a folder ... could this be the problem ? |
So if you're running the command from Also it doesn't seem like the issue is that it can't find the |
The path for the echo was : |
Hello @designatednerd I'm facing a problem where it says:Generic parameter 'Query' could not be inferred nothing really changed in the GraphQL files, except that I updated to 0.13.0 and downloaded the Schema from the backend, and made sure the API.swift file is regenerated with apollo/2.16.1 |
@Kaakati Can you please double-check the update instructions in the 0.13.0 release notes and then open a new issue if you're still having problems? I'm already having trouble trying to keep things straight here 😛 |
@sam961 If you're running it from that folder and Can you do me a favor and try the Derived Data Dance (quit xcode, delete |
Yes the |
You should only need to downgrade to 0.12.0 to have it use the old CLI. I don't know that reinstalling coocapods will do anything because the error is coming from the typescript processor installed via NPM |
@sam961 can you paste
If either of you can create and share a minimum reproduction, that would be very helpful for us to correctly (and quickly!) identify the issue. |
I've been working with @sam961 directly and it appears his issue was that the I figured this out this by pasting the contents of the file that contained that fragment into this lovely GraphQL formatter, which yelled at me until it actually was valid GraphQL. Because that wasn't getting parsed, the compiler didn't know what the hell a |
Thanks 😃 It's all good now, have a great day. |
Hey @sovannarithsok were you able to figure out the original issue here? |
@designatednerd I rolled back to use version 0.11.1 for temporary solution. I will try new version in few day later. Thanks for your time. |
@sovannarithsok OK cool - i'm gonna close this issue out since it's gotten a bit confusing with multiple different problems, please open a new issue when you try again if you're still having problems! |
Currently I use Apollo 0.11.1 with pod, It works well. After I upgrade to a new version 0.13.0 I got error when build as below:
- apollo/2.16.1 darwin-x64 node-v12.1.0
- xcode 10.3
Until now I didn't solve it yet. so what should I do? Please leave any comment. Thanks
The text was updated successfully, but these errors were encountered: