μ4ρκ05
μ4ρκ05

Reputation: 585

Undefined symbols for architecture x86_64 iOS swift

I am working on a project with the Swift programming language and I am trying to use some code from some older Objective-c projects. I have created the bridge file and imported the headers that I need but I get the following error, which I know it has to do with linking some framework, but even when I added CoreGraphics as an added framework it still appears. Any ideas?

Undefined symbols for architecture x86_64: "_CGPointMake", referenced from: _CGPointAdd in SKActionEffects-669E235BD7235D6A.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks

UPDATE: setting the BaseSDK did not do the trick. This is what my build settings are like with xcode6.

enter image description here

Upvotes: 10

Views: 14780

Answers (2)

Michal Cichon
Michal Cichon

Reputation: 1409

I don't think that adding a class to test target just to test it is a good idea. In my case checking "Allow testing Host Application APIs" made a difference.

Targets > YourApplicationUnitTests > Testing

Upvotes: 2

mishimay
mishimay

Reputation: 4337

Check if the "Target Membership" of your files are appropriate.

ss

Upvotes: 26

Related Questions