question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with XCode 7.3

See original GitHub issue

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: https://github.com/NativeScript/ios-runtime/issues/536

The only problem though is (as @raef mentioned on Slack), on subsequent build/runs:

Expected "/*", "//" or "{" but "<" found. It appears that platforms/ios/Pods/Pods.xcodeproj/project.pbxproj file is getting converted to XML when it is expected to be JSON.

If you remove platforms and add clean via tns 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-runtime#538

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (17 by maintainers)

github_iconTop GitHub Comments

4reactions
jasssonpetcommented, Mar 23, 2016

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 (brew install xcproj see: https://github.com/0xced/xcproj/blob/develop/README.md) and then played around touching the project files. I found that I needed to convert both the platforms/ios/ExampleApp.xcodeproj (replace ExampleApp with your app name) and the platforms/ios/Pods/Pods.xcodeproj file. So to do that run:

xcproj --project "platforms/ios/ExampleApp.xcodeproj" touch
xcproj --project "platforms/ios/Pods/Pods.xcodeproj" touch

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.

#!/bin/bash
echo LiveSync to Simulator
xcproj --project "platforms/ios/HotHealthApp.xcodeproj" touch
xcproj --project "platforms/ios/Pods/Pods.xcodeproj" touch
tns livesync ios --emulator --watch

I hope that helps.

1reaction
NathanaelAcommented, Apr 28, 2016

Well, in my case my stack so far is working fine with V2.00 and Cocoapods 0.39.

Read more comments on GitHub >

github_iconTop Results From Across the Web

is Xcode 7.3.1 not compatible with… | Apple Developer Forums
is Xcode 7.3.1 not compatible with Mojave?? You're now watching this thread and will ... I believe the lowest you can go is...
Read more >
Upgrading Xcode versions | CodePath iOS Cliffnotes
Xcode 8 has a backwards compatible Swift 2.3 version, but there are still some minor changes (i.e. first argument parameters labels) from the...
Read more >
Will Xcode 7.3.1 work on macOS 10.12? - Stack Overflow
You can absolutely install Xcode 7.3.1 on macOS Sierra alongside the beta version of Xcode 8. If you are having issues running Xcode...
Read more >
Oracle MAF 2.2.1 and Xcode 7.3 compatibility
Support for using XCode 7 and iOS 9 SDK for building MAF applications : Even though earlier releases of MAF supported apps on...
Read more >
Workaround for Cydia Impactor “XCode 7.3” Error (and ...
All I can say for now is: this method works with an iPhone 8 Plus running iOS 11.0.1. I imagine eventually saurik &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found