naz
naz

Reputation: 1506

Undefined symbols for architecture in Swift project

Anyone knows the cause of the error below? I already deleted the derived data, created a new project but still have the errors below. The files affected also are included in the "Compile Sources" section. Xcode is set to a custom derived data folder. This is what is set in the Framework Search Paths "../DerivedData/Build/Products/Debug-iphonesimulator", "../DerivedData/Build/Products/Debug-iphoneos" and "$(inherited)"

Undefined symbols for architecture x86_64:

_CGPointMake
_CGRectMake
_CGSizeMake
_UIEdgeInsetsMake
_dispatch_get_main_queue

I have project written in Swift and with some custom frameworks embedded.

Let me know if you have an idea what is the possible cause.

Upvotes: 0

Views: 175

Answers (1)

riodoro1
riodoro1

Reputation: 1256

Use CGPoint(x: x_coord y: y_coord) instead of CGPointMake and alike. Are You calling dispatch_get_main_queue() with parentheses?

Upvotes: 1

Related Questions