2

I've been trying to include a third party framework in my ios app archive and I've been running into a few problems. The framework was downloaded as a zip file, extracted and copied to my desktop. Here's an image of it's file contents:

enter image description here

Heres a description of the problems I am facing:

  1. When I drag the framework from my desktop and drop it under the frameworks folder inside my target, the app build fine on the simulator and the app can access the library. However, when I archive the app and build for a generic device, the framework never makes it inside my app bundle (app.ipa) and the library is missing in the distributed app

  2. So I deleted it from my frameworks and added it through the "embedded binaries" part like so:

enter image description here

This caused it to reappear inside the "link frameworks and libraries" as well as the frameworks group inside my target, like so:

enter image description here

This also creates a new build phase for Embedded Frameworks like so:

enter image description here

Now, when I go to build it for a simulator or generic device, I get the following errors:

enter image description here

And when I go to archive it for a generic device I get the following error:

enter image description here

and

enter image description here

It is an Objective-C framework so I am importing the library inside my Bridging Header like so:

enter image description here

Here is the documentation for the framework I am trying to install

enter image description here

Any help or advice is much appreciated. I've been stuck on this for quite some time and I think i'm running out of ideas.

ziyadparekh
  • 373
  • 1
  • 3
  • 7
  • Did you properly setup your bridging header inside Build Settings? – Maksym Musiienko Oct 27 '17 at 17:52
  • Yes, the build settings is correctly referencing the bridging header – ziyadparekh Oct 27 '17 at 17:54
  • I believe you already did some research about this issue, but if not try next links: https://stackoverflow.com/questions/37720234/xcode-bundle-format-unrecognized-invalid-or-unsuitable; https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html (section Importing External Frameworks). You should write `import TrustDefender` in each file, which uses it. – Maksym Musiienko Oct 27 '17 at 18:00
  • Urgh, I tried that, switched the bridging header to import the files but now I get a different error: Undefined symbols for architecture arm64: "_THMProfileStatus", referenced from: – ziyadparekh Oct 27 '17 at 18:17
  • check this. https://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64 – Yongjoon Oct 29 '17 at 00:59

0 Answers0