I'm importing a newer version of a custom framework LCCommLibrary that creates the LCConnection
class and I'm absolutely perplexed why this will build but not archive after trying multiple things.
This does builds and runs to my iOS devices, but none of the targets will Archive.
Archive usually uses the Release
build configuration while building/running on the device uses the Debug
build configuration, this is the hint that you have an issue there.
I would say in your case you can to go into the target's build settings, then look at Other Linker Flags
, Runpath Search Paths
and Library Search Paths
, expand them to show the Debug
and Release
configurations and then ensure you have the same settings for both of them, you'll most probably find something missing in release
in one of those.
Finally found the issue. The culprit was framework that was included was a debug
version of the framework. This causes Archive Schemes
to throw this error since the archive uses the Release
as the default.
The resolution was to open the LCCommLibrary
Project separately, change the Framework Target's Run Scheme to Release
, Run and Build, Locate the target framework, import and embed that back into main project file, and archive as usual.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With