Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app archive fails due to openldap and openssl makefile errors

I am currently building an iOS app written in Objective-C and Swift containing the openssl and openldap frameworks, which builds and runs without any issues.

However, when I try to archive the app for release, the below errors occur:

The Errors

Here is some additional information:

  • The Xcode version is 7.3.1 (7D1014)

  • The project is an Xcworkspace (contains a podfile, but the frameworks are not integrated through Cocoapods)

UPDATE:

After further testing, another makefile error occurred (similar issue in any case)

Second Image

This image illustrates all the frameworks and libraries used and the errors that occur.

Here is the build log:

more detail

I appreciate any assistance and would be happy to provide any additional information.

Note: I am still looking for answers in order to solve this issue

like image 655
GJZ Avatar asked Sep 03 '16 18:09

GJZ


1 Answers

I'd actually recommend something completely different. Making opens and openldap as standalone universal static libraries that you just link to. Presumably, this is what Makefile-openssl and Makefile-openldap are doing (making the universal lib)

"Why would I do such craziness?" you may be thinking. The code for openssl and openldap are not changing ... unless you have a unique case where you have forked the code and have some modification (which would probably be a bad thing). Thus there is no need to continually re-build it.

"Ahh but what about if I want to update the version?" you may be thinking. Then get the latest source and build it once. Done.

The benefits are that you are not wasting time building those libraries. While you could say it is not big deal right now, as projects get bigger, you're just wasting time re-building libraries that are not in active development. Additionally, you don't have to worry about any weird build issue like this.

For some projects I've been working on, I've convinced them to even make a pre-built library of all the cocoa pods libs we need in the project. Which has had the added benefit of keeping our main project a bit cleaner of the pods nastiness (I know some people will disagree) in your project.

like image 132
Mobile Ben Avatar answered Nov 16 '22 13:11

Mobile Ben