Mikhail S
Mikhail S

Reputation: 4103

Xcode 10.2 GNU-style inline assembly is disabled

Today, after updating Xcode and installing the macOS update, errors appeared that did not exist before.

And my Watch Extension application now contains errors:

GNU-style inline assembly is disabled:enter image description here enter image description here

I have not found answers yet why this happened. On devices it works fine. The simulator does not even build.

The applications uses watchOS 2.0 & iOS 9.0.

Upvotes: 21

Views: 1746

Answers (2)

DreamPiggy
DreamPiggy

Reputation: 94

Remove your custom the Enable Bitcode build setting (ENABLE_BITCODE) on WatchKit Extension target can solve the problem.

All watchOS and tvOS force to enable Bitcode, your custom build settings will cause error from Xcode 10.2 (ignored before Xcode 10.1). on iOS this is optional, and macOS is not supported.

This is often a mistake that you set this value in xcconfig or Project-Level build settings. The correct way for setting Bitcode on iOS target, is to only change the build setting on Tarfet-Level (or wrriting xcconfig with SDK filter)

Upvotes: 1

strangetimes
strangetimes

Reputation: 5213

In your WatchKit Extension target (or whatever target it's complaining this for), add -fgnu-inline-asm to the Other C Flags build options. You'll need to file a radar as well as it looks like a bug.

Upvotes: 24

Related Questions