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

Support for iOS GM SDK and Xcode 8? #2703

Closed
blairmacintyre opened this issue Sep 12, 2016 · 23 comments
Closed

Support for iOS GM SDK and Xcode 8? #2703

blairmacintyre opened this issue Sep 12, 2016 · 23 comments

Comments

@blairmacintyre
Copy link

I expect you are fully aware that the current release version of NativeScript doesn't work with iOS10 GM? I've updated to the latest(?), v2.2.1, and can't compile my app because of the vast changes to the iOS libraries.

Any idea when a version will be released that lets me build with Xcode 8 using the iOS 10 SDK?

@enchev
Copy link
Contributor

enchev commented Sep 12, 2016

Hey @blairmacintyre,

We will release 2.3 before the end of this week.

@blairmacintyre
Copy link
Author

Great. Was stupid/naive of me to install XCode8 before checking, I didn't reality there were so many changes to existing iOS APIs.

@akanass
Copy link

akanass commented Sep 14, 2016

Doesn't work with official release of iOS10, need to have an issue ASAP, thanks a lot.

@valentinstoychev
Copy link

The upload of 2.3 that contains the support for the final Xcode 8 and iOS 10 will be done tomorrow. Enjoy!

@blairmacintyre
Copy link
Author

Great! I really hoping recompiling with the iOS10 SDK will fix weird problems our app is exhibiting on iOS10 with the CoreMotion API ... long shot, but it all works fine pre-iOS 10.

@roblav96
Copy link

Yay for version 2.3!!! 🎉 🎈 🎂

@hypery2k
Copy link

the CLI update is available, did we also need to update the platform?

@firescript
Copy link

firescript commented Sep 15, 2016

CLI: 2.3

So for some reason when i tns run ios or anything i have to tns platform remove ios then tns platform add ios before it works again. on a fresh platform add it launches the app, but lets say i ctrl+z to exit then run again i get this error

Expected "/*", "//" or "{" but "<" found.

if i make a change with tns livesync ios --watch i get this error:

10:57:02 AM - Compilation complete. Watching for file changes.

Executing before-prepare hook from /Users/ryanlebel/Apps/TeamReps/hooks/before-prepare/nativescript-dev-typescript.js
Unable to sync files. Error is: Expected "/*", "//" or "{" but "<" found.

posted in new issue: #2725

@sitefinitysteve
Copy link
Contributor

I have witnessed this as well...

  • App works again
  • Close, start new project, tns run it
  • Go back to first app, tns run
  • "Expected /*" error again...

@dtopuzov
Copy link
Contributor

dtopuzov commented Sep 15, 2016

All components should be updated to {N} 2.3 - CLI, platform, tns-core-modules.
Even if one of them is not 2.3+ you will experience different kind of issues.

If you continue to have problems with Xcode 8 once you project is fully updated, please let us know.

Update seteps:

rm -rf hooks
rm -rf node_modules
rm -rf paltforms
update versions in your package.json to 2.3.0
[for work with real deveces] open App_Resources/iOS/build.xcconfig, uncommend // DEVELOPMENT_TEAM = YOUR_TEAM_ID; and replac with your team id
tns run ios

Notes: We plan CLI 2.3.1 release with --teamId (or something similar) option that can allow you to specify the id, so that no modifications in build.xcconfig will be required.

Please note that with 2.3 you can stop tns commands with Ctrl + C.
Ctrl + Z will just put the process on background, but it will be still alive.

@firescript
Copy link

@dtopuzov hey man thanks! that worked to clear up my issue!

@blairmacintyre
Copy link
Author

Ok, I got our app working.

We're using Typescript, btw: is there an automated way of getting typescript to see the ios.d.t files in the NativeScript/NativeScript repo? Right now I just downloaded them.

@jasssonpet
Copy link
Contributor

@blairmacintyre
Copy link
Author

blairmacintyre commented Sep 18, 2016

Thanks @jasssonpet ... So, I tried that, but clearly I need to do something else. If I don't already have the .d.ts files for the OS, then the "tsc build ios" steps fail because the typescript commands don't execute. Chicken and egg. Perhaps we need to change our project somehow?

@manijak
Copy link

manijak commented Sep 25, 2016

@dtopuzov I tried all those exact steps, and I still get the error:
Expected "/*", "//" or "{" but "<" found.

The first prepare goes fine, but the 'tns run ios' command fails.

This is really frustrating... Every module is 2.3.0. There is nothing more to update. I am running Xcode 8 on macOS Sierra 10.12.

@leocaseiro
Copy link
Contributor

leocaseiro commented Sep 25, 2016

Hi, @manijak,

Have you tried removing and adding the ios again?
I always try these steps to be sure my app is with the new version and so on:

tns platform remove ios
tns platform add ios
tns prepare ios
tns run ios --emulator

Hope it helps!

@manijak
Copy link

manijak commented Sep 26, 2016

Thanks @leocaseiro but it's not the first time I am dealing with {N} updates :) (been using it since 0.8.0).
I always remove the platform prior to update, so was the case for 2.3.0, several times...

First time seeing this error tho, never had it before.

@dbenninger
Copy link
Contributor

I've got the same error and the steps above don't fix it for me... I'll let you know as soon as I've found the issue..

@jasssonpet
Copy link
Contributor

jasssonpet commented Sep 26, 2016

Hey guys, can you try the workaround described in NativeScript/nativescript-cli#1639 (comment) and tell us if it works. It seems to be the same issue.

Also, what version of Cocoapods are you using and do you have any plugins installed or does this also happen when you create a fresh new app.

@dbenninger
Copy link
Contributor

Thanks @jasssonpet, the workaround above did work for me. A fresh app worked fine, until I added a plugin with a podfile. The issue appeared after upgrading to xcode 8.

I have upgraded cocoapods from 1.0.1 to 1.1.0.rc.2 and this has solved the issue!

@manijak
Copy link

manijak commented Sep 26, 2016

@jasssonpet Thanks! Forgot about that issue. I updated cocoapods to 1.0.1 ( I had 1.0.0rc1 installed). After that, removed and readded the /platform/ios/ folder, and the builds run fine now :)

Thanks again.

@enchev enchev closed this as completed Oct 3, 2016
@mattwilson1024
Copy link

I also got the error Expected "/*", "//" or "{" but "<" found.

What fixed it for me was updating cocoapods as follows:

sudo gem install cocoapods --pre
tns platform remove ios
tns platform add ios
tns build ios

This took me from v1.0.1 to v.1.2.0.beta.1 of cocoapods (pod --version).

@lock
Copy link

lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests