10

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

1

2 Answers 2

26

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

ss

7
  • This was it...saved me hours, awesome answer dude. I was adding files through a folder reference where I should have been just adding them in groups! Thanks!!! Commented Nov 5, 2014 at 2:10
  • @md_develop Can you ellaborate what this means? I have the same error but am not sure where to find the target membership. I'm assuming its somewhere in the project settings
    – Unome
    Commented Apr 15, 2015 at 6:38
  • @Unome I added screen shot. It's not the project setting but the file property.
    – mishimay
    Commented Apr 15, 2015 at 8:38
  • i have the same error. However, I cannot select the target membership. It is gray and un-selectable. Any ideas?
    – μ4ρκ05
    Commented Aug 13, 2015 at 13:32
  • Are you selecting .h file? Select .m or .swift file.
    – mishimay
    Commented Aug 15, 2015 at 2:23
2

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.