forcedotcom / SalesforceMobileSDK-CordovaPlugin

Cordova plugin for the Salesforce Mobile SDK
Other
48 stars 114 forks source link

Archive failing #608

Closed rahulom closed 1 week ago

rahulom commented 1 year ago

The xcode is throwing an error while archiving the build. Derived data error is throwing by the xcode. The application running fine in simulator and devices. I tried to remove an extra Images.xcassets from Build Faces->Copy bundle resources -But still the issue not resolved.

Cordova Info---

Cordova Packages:

cli: 11.0.0
    common: 4.0.2
    create: 4.0.0
    lib: 11.0.0
        common: 4.0.2
        fetch: 3.0.1
        serve: 4.0.0

Project Installed Platforms:

ios: 6.2.0

Project Installed Plugins:

com.salesforce: 10.2.0
cordova-plugin-device: 2.1.0
cordova-plugin-file-opener2: 3.0.5
cordova-plugin-file: 7.0.0
cordova-plugin-inappbrowser: 5.0.0
cordova-plugin-statusbar: 3.0.0

Environment:

OS: macOS Monterey 12.6 (21G115) (darwin 21.6.0) x64
Node: v16.17.0
npm: 8.15.0

ios Environment:

xcodebuild:

Xcode 14.0 Build version 14A309

Project Setting Files:

config.xml:

<?xml version='1.0' encoding='utf-8'?>

appinfo appinfo appinfo Team
package.json:

--- Start of Cordova JSON Snippet --- { "platforms": [ "ios" ], "plugins": { "com.salesforce": {}, "cordova-plugin-device": {}, "cordova-plugin-file-opener2": {}, "cordova-plugin-file": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-statusbar": {} } } --- End of Cordova JSON Snippet ---

JeroenSchu commented 1 year ago

any suggestion? @wmathurin

rahulom commented 1 year ago

Finally everything is working. I simply removed this plugin and implimented the custom Oauth flow.

va1bhav commented 1 year ago

Fix for this on Mobile SDK discussion forum https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgC8FSAV

jake-moritz-trifecta commented 1 year ago

I'm also running into Xcode archive issues with SDK 10.2.0, Xcode 14 + modern build system, anyone have a workaround for now?

gkotula commented 1 year ago

@jake-moritz-trifecta We are still working on incorporating the fix directly, but the link above (https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgC8FSAV) has some steps that has worked for others in the meantime. Could you give that a try and see if those steps work for you as well?

jake-moritz-trifecta commented 1 year ago

Thanks for the fast reply! I have already updated my build scripts to remove libCordova.a from linked binaries and remove CordovaLib from the target dependencies as mentioned in the link. This has allowed my local Xcode builds and archives to work properly.

As part of my testing of these changes, I tried to upload my app's .ipa file to App Store Connect. I am getting these errors, which I haven't gotten before:

image

This is a screenshot from Transporter for Mac. I received the same error messages when trying to deliver the .ipa file using Fastlane.

wmathurin commented 1 week ago

A number of changes have taken place since the issue was first opened. Please re-open the issue if it still persists on the latest version of Mobile SDK (12.0).