Quick: Compilation Errors with Swift 4 and Xcode 9

Created on 29 Sep 2017  路  8Comments  路  Source: Quick/Quick

What did you do?

Tried to compile my Project with Swift 4 and Xcode 9.

What did you expect to happen?

That everything will build successfully.

What actually happened instead?

Quick and Nimble show strange errors. It is kinda strange because I don't get these errors on a different project.

Errors:
screen shot 2017-09-29 at 18 47 06
screen shot 2017-09-29 at 18 48 56

Environment

List the software versions you're using:

  • Quick: 1.2.0
  • Nimble: 7.0.2
  • Xcode Version: Version 9.0 (9A235)
  • Swift Version: `Xcode Default

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Cocoapods: 1.3.1

Most helpful comment

I've found the way to solve the problem. The error was due to APPLICATION_EXTENSION_API_ONLY set to YES on project level. Once I set this property to NO it fixed compilation. Funny enough keeping it on for Targets works without any problem.

All 8 comments

Hi, @Narsail. did you resolve the issue?

Nope. And I couldn't find the pattern yet. I some of my frameworks it is occurring, in some it isn't. That is strange.

I've found the way to solve the problem. The error was due to APPLICATION_EXTENSION_API_ONLY set to YES on project level. Once I set this property to NO it fixed compilation. Funny enough keeping it on for Targets works without any problem.

Mmh on my first attempt your proposed solution didn't work. Even turning it off on the targets didn't help

@Narsail, forgot to mention one more step: do pod install. It will update the settings for Quick pod and it should work.

@Constantine-Fry Indeed. That worked. Thanks a lot!

I have this problem in an otherwise empty project. APPLICATION_EXTENSION_API_ONLY is set to NO but I still get these compiler errors.

Should be addressed by #791.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noisypigeon picture noisypigeon  路  6Comments

cjwirth picture cjwirth  路  5Comments

michaelmcguire picture michaelmcguire  路  6Comments

Jtango18 picture Jtango18  路  7Comments

modocache picture modocache  路  7Comments