Errors of Swift Parse PubNub Mach-O

I am building an application using Swift, Parse and PubNub. I used pods to install Parse and PubNub, and they seem to be installed just fine. However, I get all these compilation errors and am not sure which direction I should look for them.

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFObject", referenced from:
  __TMaCSo8PFObject in ViewController.o
  __TMaCSo8PFObject in LogInViewController.o
"_OBJC_CLASS_$_PFQuery", referenced from:
  __TMaCSo7PFQuery in LogInViewController.o
"_OBJC_CLASS_$_PFUser", referenced from:
  __TMaCSo6PFUser in SignUpViewController.o
  __TMaCSo6PFUser in ViewController.o
  __TMaCSo6PFUser in LogInViewController.o
"_OBJC_CLASS_$_PNChannel", referenced from:
  __TMaCSo9PNChannel in ViewController.o
"_OBJC_CLASS_$_PNConfiguration", referenced from:
  __TMaCSo15PNConfiguration in ViewController.o
"_OBJC_CLASS_$_Parse", referenced from:
  __TMaCSo5Parse in AppDelegate.o
"_OBJC_CLASS_$_PubNub", referenced from:
  __TMaCSo6PubNub in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+4
source share
2 answers

See my previous answer here for a similar problem. This may help you here, as Match-O error tends to be common.

0
source

I am working on a Swift iOS application that uses Parse Pod.

I did the following and everything to compile it:

  • Update in Parse version 1.7.4 in your subpixel
  • "Pods" " Framework" YES
    1. use_frameworks! podfile
0

Source: https://habr.com/ru/post/1589470/


All Articles