-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Compatibility with XCode 7.3 #1639
Comments
From @NathanWalker on March 22, 2016 18:31 To help in debugging the above for whomever may tackle the fix here:
You should see Simulator open and the demo running properly. Now stop
And you will see the error reported:
|
From @NathanWalker on March 22, 2016 21:38 As reported by @raef (on slack) This appears to be a workaround for those working on NativeScript projects with CocoaPods.
Then add this as an
Then run everything through that so:
|
From @raefa on March 22, 2016 23:0 As discussed in the Slack iOS channel I got this going. Thanks to @alg as he helped me figure this out (doing a diff between his files and mine). So the issue is caused by “pod install” converting the “.pbxproj” files (within the xcodeproj files) to XML. NativeScript expects them to be in JSON. The problem is explained in a little more detail here: https://github.com/CocoaPods/CocoaPods/wiki/Generate-ASCII-format-xcodeproj I don’t know why it changes or why it is only happening now with Xcode 7.3. I read here (https://github.com/CocoaPods/CocoaPods/wiki/Generate-ASCII-format-xcodeproj) that if you touch the files it converts them back to JSON. I tried the technique they specified but that did not work. So I installed xcproj (
That is a bit of a pain to type in every time so I created some quick bash scripts to run to build. E.g.
I hope that helps. |
So to sum it up - CocoaPods updates the Xcode project to XML format and node-xcode is not being able to parse xml projects. I'm moving this to the CLI repo. |
Argh, 👍, this caught me out. |
I updated to xcode 7.3 today, and I have no such issues... my app uses 2-3 pods also. I can build & run the app several times both via cli and via xcode. |
As @jasssonpet said this is probably a Cocoa Pods issue |
@Mitko-Kerezov my version is |
@Mitko-Kerezov |
All right - now I too seem to be getting 100% reproduction |
There are probably some dependencies in each of them. Don't know what is the best way to get a full list here, they seem to be spread to diferent folders in platforms/ios/Pods |
Issue seems to have disappeared in Cocoa Pods 1.0.0 beta releases |
@Mitko-Kerezov Does this mean we should all just update to Cocoa Pods 1.0.0 beta? Or should we wait til' {N} ios-runtime 1.7.2? |
@NathanWalker |
@Mitko-Kerezov So I updated to latest CocoaPods beta
Then it finally errors with this:
I tried running |
@NathanWalker Sorry for the late reply Luckily, however, all of these problems will be solved in the upcoming 2.0.0 release which should be out by the start of next week. Until release however I strongly suggest switching back to |
This comment was marked as abuse.
This comment was marked as abuse.
@NathanaelA So in theory every configuration should work - regardless of Xcode and CocoaPods versions. |
This comment was marked as abuse.
This comment was marked as abuse.
Sounds good - any feedback would be much appreciated |
This comment was marked as abuse.
This comment was marked as abuse.
@NathanaelA is 2.0 stable enough in iOS? If so how about in Android? I read there are issues posted by people ? Thanks |
I'm getting this issue again on xcode 8 with ios 10, is any one else? |
Me too. Seems it reappears. |
@ignaciolarranaga check this comment out, will fix you up hopefully: NativeScript/NativeScript#2703 (comment) |
@firescript thanks !, but I think it is happening again, check my comments at the issue: #2062 |
From @NathanWalker on March 22, 2016 17:40
7.3 fixes a number of problems with 7.2, namely this very frustrating issue for us plugin developers:
NativeScript/ios-jsc#536
The only problem though is (as @raef mentioned on Slack), on subsequent build/runs:
If you remove
platforms
and add clean viatns platform add ios
, everything builds and runs perfectly. Awesome.So it appears the only issue is just subsequent runs after the platform has been added.
Any insight or patch that could be incorporated to resolve this would be very much appreciated.
Copied from original issue: NativeScript/ios-jsc#538
The text was updated successfully, but these errors were encountered: