Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS build error AppboyUI.ContentCards.bundle not found #67

Closed
Personal-Group opened this issue Apr 29, 2021 · 1 comment
Closed

iOS build error AppboyUI.ContentCards.bundle not found #67

Personal-Group opened this issue Apr 29, 2021 · 1 comment

Comments

@Personal-Group
Copy link

We're getting the following error when building with any version of the plugin (master or 2.21.0), though we're specifically using the geofence branch.

PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/simon/Library/Developer/Xcode/DerivedData/HelloCordova-dfodgbfvhhnkqafmcgddtlahmsnn/Build/Intermediates.noindex/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Script-9EEA769FE37603DB51F83D7A.sh (in target 'HelloCordova' from project 'HelloCordova')
    cd /Users/simon/Development/Cordova/PluginTester/BrazePluginTest/platforms/ios
    /bin/sh -c /Users/simon/Library/Developer/Xcode/DerivedData/HelloCordova-dfodgbfvhhnkqafmcgddtlahmsnn/Build/Intermediates.noindex/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Script-9EEA769FE37603DB51F83D7A.sh
error: Resource "/Users/simon/Library/Developer/Xcode/DerivedData/HelloCordova-dfodgbfvhhnkqafmcgddtlahmsnn/Build/Products/Debug-iphonesimulator/Appboy-iOS-SDK/AppboyUI.ContentCards.bundle" not found. Run 'pod install' to update the copy resources script.
** BUILD FAILED **

The following build commands failed:
	PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/simon/Library/Developer/Xcode/DerivedData/HelloCordova-dfodgbfvhhnkqafmcgddtlahmsnn/Build/Intermediates.noindex/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Script-9EEA769FE37603DB51F83D7A.sh
(1 failure)
xcodebuild: Command failed with exit code 65

This is happening with Xcode 12.4, Cocoapods 1.10.1.

This can be replicated with a bare-bones Cordova application:

cordova create BrazePluginTest
cd BrazePluginTest
cordova platform add ios
cordova plugin add https://github.com/Appboy/appboy-cordova-sdk.git#2.21.0
cordova build ios

Please let me know if you require any additional information.

Personal-Group pushed a commit to Personal-Group/appboy-cordova-sdk that referenced this issue May 6, 2021
Issue: braze-inc#67
Source for workaround: https://github.com/cmfsotelo/use-frameworks-plugin

Signed-off-by: Simon Strudwick <simon.strudwick@personalgroup.com>
@Personal-Group
Copy link
Author

It seems this issue is either due to Cocoapods or a Cordova build directory setting. I have implemented a temporary workaround to override using CONFIGURATION_BUILD_DIR in the build.js script as suggested in apache/cordova-ios#659.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants