MAS SDK 2.00.00 iOS - App Distribution issue

book

Article ID: 140317

calendar_today

Updated On:

Products

CA Mobile API Gateway CA Rapid App Security

Issue/Introduction

Problem description: 

When using version 2.00.00 of Mobile SDK in iOS, it is no longer possible to distribute app in XCode 11.2.

The steps at the following url were used to installl version 2.00.00 of the SDK:
http://mas.ca.com/docs/ios/2.0.00/guides/#create-app-from-scratch-or-integrate-an-existing-app-into-the-mobile-sdk

Unfortunately, the link to the SDK still points to 1.9 so the following url was used to get v2:
https://github.com/CAAPIM/Releases/blob/develop/MAS-2.0.00/iOS/iOS-MobileSDK-2.0.00.zip

Please find the attached log.

Here is a potential explanation of what might be causing the issue:
https://en.dev4app.com/archives/57382217-how-to-fix-quot-ipa-processing-failed-quot-error-in-xcode-11.html

We've tested linking the app and not embedding which fixes the distribution issue but the app no longer runs (image not found error).

 

Environment

Release : 2.0

Component : MOBILE API

Resolution

In the build phases, we moved the
architecture removal Run Script to the bottom in sequence so it was after the
Embed Frameworks Build Phase.

Additional Information

We generally ship the universal binary in our release which includes all architectures that support both Devices and Simulators.
The problem is Apple looks for Simulator archs and errors out while making an ipa.
We documented the steps here 
http://mas.ca.com/docs/ios/2.0.00/guides/#create-app-from-scratch-or-integrate-an-existing-app-into-the-mobile-sdk (look at step 10)
which removes the simulator architectures from the binary and to get past that error.

You can also do this with few commands as described here : https://stackoverflow.com/a/51324598 

Attachments

1574072842064__IDEDistribution.standard.log get_app