Closed ftfeiteng closed 3 years ago
Something looks off. It should pulling in the v9.0.0 versions of the various libs. See https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin/blob/v9.0.0/plugin.xml#L97
How did you generate the application?
I followed this document to generate the applicateion https://trailhead.salesforce.com/content/learn/modules/mobile_sdk_hybrid/mobilesdk_hybrid_sample_app
Here is the commands that I used.
git clone https://github.com/forcedotcom/SalesforceMobileSDK-Shared.git
forcehybrid create
cd contactsApp
cordova plugin add cordova-plugin-contacts
cordova plugin add cordova-plugin-statusbar
cordova plugin remove com.salesforce
instead of adding from the github, I cloned the SalesforceMobileSDK
locally because it is way faster.
cordova plugin add <local path to SalesforceMobileSDK-CordovaPlugin> --force
cp -RL <local path to SalesforceMobileSDK-Shared>/samples/contactexplorer/* www/
cordova run ios
Make sur you clone SalesforceMobileSDK
at the v9.0.0 tag then.
Thanks wmathurin. After I checked out at v9.0.0 tag. It works as expected. Sorry, I can't believe that I overlooked it.
I am trying to create a hybird local cordova app for both Android and iOS with SalesforceMobileSDK. I managed to get Android wroking, but I ran into some issue when building the iOS app
cordova run ios
cordova run ios
Build system information error: Multiple commands produce '/Users/feiteng/workspace/sideproject/salesforce-sdk-poc/contactsApp/platforms/ios/build/emulator/Cordova.framework/Cordova': 1) Target 'Cordova' has link command with output '/Users/feiteng/workspace/sideproject/salesforce-sdk-poc/contactsApp/platforms/ios/build/emulator/Cordova.framework/Cordova' 2) Target 'Cordova' has link command with output '/Users/feiteng/workspace/sideproject/salesforce-sdk-poc/contactsApp/platforms/ios/build/emulator/Cordova.framework/Cordova'
...... some similar logs
warning: duplicate output file '' on task: Touch /Users/feiteng/workspace/sideproject/salesforce-sdk-poc/contactsApp/platforms/ios/build/emulator/Cordova.framework (in target 'Cordova' from project 'Pods')
...... some similar logs
BUILD FAILED
Build input file cannot be found: '/Users/feiteng/workspace/sideproject/salesforce-sdk-poc/contactsApp/platforms/ios/CordovaLib/Cordova/Info.plist'
DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://cdn.cocoapods.org' platform :ios, '13.0' use_frameworks! target 'contactsApp' do project 'contactsApp.xcodeproj' pod 'SalesforceHybridSDK', :branch => 'dev', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Hybrid' pod 'MobileSync', :branch => 'dev', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS' pod 'SmartStore', :branch => 'dev', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS' pod 'FMDB/SQLCipher', :tag => '2.7.5', :git => 'https://github.com/ccgus/fmdb' pod 'SQLCipher/fts', :tag => 'v4.4.2', :git => 'https://github.com/sqlcipher/sqlcipher' pod 'SalesforceSDKCore', :branch => 'dev', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS' pod 'SalesforceAnalytics', :branch => 'dev', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS' pod 'SalesforceSDKCommon', :branch => 'dev', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS' end