Does AppCode work for Xcode 8.3 and Swift 3?

Answered

Hi,

Since the latest Xcode updates (currently Xcode 8.3.2) AppCode is not usable. I can't run apps and it also randomly freezes Xcode/Simulator so I can't even edit code in AppCode. Any help will be appreciated.

Thank you

0
6 comments

I'm using the 2017.2 EAP with Xcode 8.3.2 and it works great.  Might try File/Invalidate Caches-Restart.

0

Thanks Mark.

After updating to the latest EAP I still get several errors like these, and more.

@discardableResult is not recognized

@available(OSX, introduced: 10.10) is not parsed well

precedencegroup or infix operator are not supported, I think

Those are from the Cartography pod.

I guess Swift changes too fast...

 

0
Avatar
Tatiana Shabaeva

Ferran,

You may also want to check which Xcode version is selected in Preferences | Tools | Xcode. Seems that it's not the latest one.

There could be issues with completion for @attributes (like @discardableResult and @available) but those should be parsed fine.

0

That was the problem, Tatiana!

I don't know why I had Xcode 7.3.1 selected there!

I have 3 versions of Xcode installed for other reasons. Seems Appcode didn't select the latest automatically.

Thank you!

0
Avatar
Tatiana Shabaeva

Glad to help.

Normally AppCode offers to switch Xcode versions when new Xcode is detected on the system or in case currently selected version is not supported by AppCode anymore (Xcode 7.3.1 is still supported). Maybe you've dismissed the switch notification when newer Xcode versions were installed?

0

It's probable. I had to install previous versions of Xcode to support iOS7 (Xcode 7.3.1) and Swift2 (Xcode 8.2). While changing versions back and forth Appcode must have taken that old Xcode version. I wasn't aware or didn't remember that Appcode setting. I knew there was something wrong because I didn't have the latest simulator versions. Now I know what was happening. Thank you!

 

0

Please sign in to leave a comment.