Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10.2 GNU-style inline assembly is disabled

Tags:

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

  • Could not build module '_Builtin_instrinsics'
  • Could not build module 'simd'
  • Could not build module 'SceneKit'
  • Could not build module 'WatchKit'

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.

like image 853
Mikhail S Avatar asked Mar 26 '19 08:03

Mikhail S


2 Answers

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.

like image 153
strangetimes Avatar answered Sep 30 '22 06:09

strangetimes


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)

like image 31
DreamPiggy Avatar answered Sep 30 '22 05:09

DreamPiggy