adform / adform-ios-sdk

adform-ios-sdk
MIT License
8 stars 8 forks source link

Built SDK is missing arm64 architecture #6

Closed Auralien closed 7 years ago

Auralien commented 7 years ago

I'm following installation instructions for the case of manual installation. When trying to build the project after that I get this error message:

Undefined symbols for architecture arm64:
  "_OBJC_METACLASS_$_SFSafariViewController", referenced from:
      _OBJC_METACLASS_$_AFSafariViewController in AdformAdvertising(AFSafariViewController.o)
  "_OBJC_CLASS_$_SFSafariViewController", referenced from:
      objc-class-ref in AdformAdvertising(AFUtilities.o)
      _OBJC_CLASS_$_AFSafariViewController in AdformAdvertising(AFSafariViewController.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I remove arm64 from Valid Architectures I get same message about armv7:

Undefined symbols for architecture armv7:
  "_OBJC_METACLASS_$_SFSafariViewController", referenced from:
      _OBJC_METACLASS_$_AFSafariViewController in AdformAdvertising(AFSafariViewController.o)
  "_OBJC_CLASS_$_SFSafariViewController", referenced from:
      objc-class-ref in AdformAdvertising(AFUtilities.o)
      _OBJC_CLASS_$_AFSafariViewController in AdformAdvertising(AFSafariViewController.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The issue is reproducible on a clean Objective-C project with added Swift code: I've created a single view application in ObjC and then added a Swift view controller from which I'm trying to call the Adfrom code.

Example project is attached. AdformObjcTestApp.zip

vladasdrejeris commented 7 years ago

Hello,

You need to import SafariServices.framework.

Auralien commented 7 years ago

Please add this info to the Wiki.