Git Product home page Git Product logo

salesforcemobilesdk-package's Introduction

CircleCI

SalesforceMobileSDK-Package

Repo for forceios/forcedroid/forcehybrid/forcereact and the Salesforce CLI plugin.

To get started do the following from the root directory

node ./install.js

To run forceios do

./ios/forceios.js

To run forcedroid do

./android/forcedroid.js

To run forcehybrid do

./hybrid/forcehybrid.js

To run forcereact do

./react/forcereact.js

To load the sf plugin from source do

sf plugins link sfdx

To run the Salesforce CLI plugin do

sf mobilesdk ios --help 
sf mobilesdk android --help 
sf mobilesdk hybrid --help 
sf mobilesdk reactnative --help

To test forceios, forcedroid, forcehybrid, forcereact or the Salesforce CLI plugin do

./test/test_force.js

To npm pack forceios, forcedroid, forcehybrid, forcereact or the Salesforce CLI plugin do

./pack/pack.js

To do a full release

./release/release.js

salesforcemobilesdk-package's People

Contributors

bbirman avatar bhariharan avatar brandonpage avatar humaggie avatar huminzhi avatar jamesward avatar rwhitley avatar svc-scm avatar tnoonan-salesforce avatar trooper2013 avatar wmathurin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

salesforcemobilesdk-package's Issues

mobilesync.cleanResyncGhosts() in React Native

Hi Team,

I am currently using SDK 8.2 react-native and i want to clean the ghosts records from the local soup. I have gone through the following documentations but its throwing an error.

https://developer.salesforce.com/docs/atlas.en-us.noversion.mobile_sdk.meta/mobile_sdk/entity_framework_sync_ghosts.htm

https://developer.salesforce.com/docs/atlas.en-us.noversion.mobile_sdk.meta/mobile_sdk/entity_framework_native_inc_sync.htm?search_text=sync%20id

In the cleanResyncGhosts() method, we need to pass the sync_id in react native, is there any way we can get the sync Id based on the sync name?

Is there any template project with cleanResyncGhosts() in react-native?

Thanks

Error installing SalesforceApp-Android-238.050.0#3-s1-externalDev.apk

Hello all,
i have followed the following trailhead:
https://trailhead.salesforce.com/content/learn/projects/set-up-your-salesforce-mobile-developer-tools-for-lightning-web-components/install-salesforce-mobile-app-emulator-for-android
Downloaded the apk for testing from:
https://developer.salesforce.com/tools/mobile-debugging?_ga=2.259854090.1666245179.1665763751-871882735.1663566154#

Im currently using Mac pro M1 as follows:

Screen Shot 2022-10-14 at 13 18 47

And when i try to install the app the emulator throws an error.

Screen Shot 2022-10-14 at 13 19 14

It would be nice to provide an salesforce app compatible with M1 Development Enviroment

Error build Android app

Hi guys,

After being able to generate a project using forcereact create the android app does not complete the build and this is the error I can see in the console

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexWithInstantRunDependenciesApkForDebug'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aapt
	at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55)
	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104)
	at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:212)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
	at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
	... 32 more
Caused by: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aapt
	at com.android.build.gradle.internal.transforms.InstantRunDependenciesApkBuilder.transform(InstantRunDependenciesApkBuilder.java:152)
	at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221)
	at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217)
	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
	... 48 more
Caused by: com.android.ide.common.process.ProcessException: Failed to execute aapt
	at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:809)
	at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:797)
	at com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApkResourcesAp(InstantRunSplitApkBuilder.java:375)
	at com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApkResourcesAp(InstantRunSplitApkBuilder.java:323)
	at com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApk(InstantRunSplitApkBuilder.java:211)
	at com.android.build.gradle.internal.transforms.InstantRunDependenciesApkBuilder.transform(InstantRunDependenciesApkBuilder.java:149)
	... 51 more
Caused by: java.util.NoSuchElementException
	at com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:80)
	at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:315)
	at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:263)
	at com.android.builder.internal.aapt.v1.AaptV1.makePackageProcessBuilder(AaptV1.java:202)
	at com.android.builder.internal.aapt.AbstractProcessExecutionAapt.makeValidatedPackage(AbstractProcessExecutionAapt.java:67)
	at com.android.builder.internal.aapt.AbstractAapt.link(AbstractAapt.java:34)
	at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:807)
	... 56 more

I've googled the error but could not find ther reason why this is happening.
FYI, iOS project does build and works!

Thank you very much

Cocoapods pre-req could be more clear

I'm new to this tool. After following the directions in the Trailhead "Getting Started with Hybrid Development" unit, I ran forceios and got an error say that "pod" was not installed. There was nothing in the tutorial about that pre-req, and being that I'd been using npm to install all of these tools, I naively did "sudo npm install -g pod", which installed the npm package "pod", which has nothing to do with Cocoapods or the "pod" that forceios was expecting. I went down about a 60 minute rathole to figure that out and correct it.

My suggestion would be that if you fail on "pod", you might give an error message explaining that Cocoapods is required.

It's also a little annoying that this pre-req is checked after you collect all of the app info interactively.

forceios create fails on Creating native app

I just upgraded to NPM 5, so I do not know if this is the cause, but I am getting the following error when I try to use this tool to create a native template.

Analyzing dependencies
Fetching podspec for SalesforceAnalytics from node_modules/SalesforceMobileSDK-iOS
[!] No podspec found for SalesforceAnalytics in node_modules/SalesforceMobileSDK-iOS
/Users/davidfekke/Documents/xcode
forceios create failed

Command failed: pod update

forcereact differed login app restarts automatically after login authentication is done .

Below are the steps followed to create projecct.
Link which i used for react native differed login https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/react_native_new_project.htm?q=defer .
Steps i followed to create project
1.Created project with forcereact createWithTemplate
2.I had given template as ReactNativeDeferredTemplate
3.After successful project creation switched to IOS folder and opened in Xcode ,and started metro bundler and ran IOS app .
4.Changed url in info.plist with our URL.
5.After successful launch on simulator i clicked on login and provided details to login ,on click of allow permission app restarted completely .
we are facing this issue as restarting whole app is uncertain and causing disturbed flow , nothing changes in the code default template itself behaves this way .

xcode build issue

Hi there,

I got this issue when building in xcode.

Double-quoted include "YGMacros.h" in framework header, expected angle-bracketed instead

Changing to <YGMachros.h> doesn't work.

My xcode version is Version 11.3.1 (11C505)
cocoapod version is 1.8.0

Forcehybrid npm - hybrid_lwc - Cordova - Application error: the connection to the server was unsuccessfull

I have tried to build a 'hybrid_lwc' custom salesforce mobile application using "forcehybrid create" package by refering below link: https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/hybrid_lightning_web_components.htm?search_text=lwc

I am not able to run that app in the android emulator as well as in real device, as I am getting "Application Error" as shown in the attachment below.
Android_img

Please respond to this ASAP.

Thanks.

forcedroid fails to create new Android project

I have Node.js 6.11.3 installed with macOS 10.12.6. I am getting the following error when I try to create a new Android app or add a plugin to an existing app;

forcedroid create --apptype=hybrid_remote --appname="SFTest" --packagename=com.swyftmobile.sftest --organization="Swyft Technology" --startpage="/one/one.app"
Enter output directory for your app (leave empty for the current directory):

********************************************************************************
*
*   Creating android hybrid_remote application using Salesforce Mobile SDK
*     with app name:        SFTest
*          package name:    com.swyftmobile.sftest
*          organization:    Swyft Technology
*
*     in:                   SFTest
*
*     from template repo:   https://github.com/forcedotcom/SalesforceMobileSDK-Templates#v5.0.0
*          template path:   HybridRemoteTemplate
*          start page:      /one/one.app
*          plugin repo:     https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.0.0
*
********************************************************************************

Creating a new cordova project.
/Users/davidfekke/Documents/android/projects/SFTest /Users/davidfekke/Documents/android/projects
[email protected] /Users/davidfekke/Documents/android/projects/SFTest
└─┬ [email protected]
  ├─┬ [email protected]
  │ ├── [email protected]
  │ ├─┬ [email protected]
  │ │ └── [email protected]
  │ ├── [email protected]
  │ ├─┬ [email protected]
  │ │ └─┬ [email protected]
  │ │   ├── [email protected]
  │ │   └── [email protected]
  │ ├── [email protected]
  │ └── [email protected]
  ├── [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected]

/Users/davidfekke/Documents/android/projects
/Users/davidfekke/Documents/android/projects/SFTest /Users/davidfekke/Documents/android/projects
Using cordova-fetch for [email protected]
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: com.swyftmobile.sftest
	Name: SFTest
	Activity: MainActivity
	Android target: android-25
Subproject Path: CordovaLib
Android project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android
ANDROID_HOME=/Users/davidfekke/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
Failed to install 'cordova-plugin-whitelist': CordovaError: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /Users/davidfekke/Library/Android/sdk/tools/templates/gradle/wrapper
    at Object.module.exports.check_gradle (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/lib/check_reqs.js:90:25)
    at GradleBuilder.prepEnv (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/lib/builders/GradleBuilder.js:161:23)
    at Api.module.exports.runClean (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/lib/build.js:131:20)
    at /Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/Api.js:392:50
    at _fulfilled (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/node_modules/q/q.js:796:13)
    at /Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/node_modules/q/q.js:604:44
    at runSingle (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/Users/davidfekke/Documents/android/projects/SFTest/platforms/android/cordova/node_modules/q/q.js:125:13)
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /Users/davidfekke/Library/Android/sdk/tools/templates/gradle/wrapper
--save flag or autosave detected
Saving android@~6.1.0 into config.xml file ...
/Users/davidfekke/Documents/android/projects
forcedroid create failed

Command failed: cordova platform add [email protected]

react-native link breaks build in SDK version 5.0

Steps to reproduce:

  • create a fresh react native ios app using forceios create

  • run react-native link

  • try to build the project in xcode

Error: 2-4x lexical or preprocessor issue SalesforceSDKCore/SFLogger.h file not found in FMDB-IOS
image

Adding salesforcemobileSDK pods to my podfile and running pod install does not seem to fix the issue.

Getting error when tried node ./install.js

can anyone help why I am getting this error

node ./install.js
Installing npm dependencies
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

added 543 packages, and audited 544 packages in 3m

28 packages are looking for funding
  run `npm fund` for details

10 vulnerabilities (2 low, 3 moderate, 5 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

Upgrade shelljs to 0.8.4

Currently gives the following warnings with NodeJS >= 14...

See shelljs/shelljs#991

❯ forcereact createwithtemplate --templaterepouri=ReactNativeTypeScriptTemplate
Enter the target platform(s) separated by commas (ios, android): (node:39583) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:39583) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:39583) Warning: Accessing non-existent property 'which' of module exports inside circular dependency

Unable to view smartstore inspector for mobile

I have created app through forcereact command. To debug the smartstore I am trying to use smartstore inspector. As per documentation it is enabled by default but I am not able to see the option in Dev Support dialog box.
I have added following line of code in android/app/src/main/java/com/testApp/test/smartstore830/MainApplication.java
SalesforceReactSDKManager.getInstance().setDevSupportEnabled(true);
following is the link for the documentation
https://developer.salesforce.com/docs/atlas.en-us.noversion.mobile_sdk.meta/mobile_sdk/tools_dev_support.htm

Version Information
"react-native": "0.63.2",
"react-native-force": "git+https://github.com/forcedotcom/SalesforceMobileSDK-ReactNative.git#v8.3.0",

Migrating react native version from 0.67.1 (default) to 0.70

I am working on the react native project based on top of salesforce mobile SDK. When I create a project with the command
forcereact createwithtemplate --templaterepouri=ReactNativeTemplate  
I get the RN 0.67.1 version but the current RN version is 0.70.
Will there be any impact if i upgrade RN version to 0.70 ?

forceios create failed

Hi all, while following the tutorial on
https://developer.salesforce.com/docs/atlas.en-us.noversion.mobile_sdk.meta/mobile_sdk/hybrid_ios.htm
I got the following issue. Please let me know if there is anything I'm doing wrong.

➜ forceios version
forceios version 5.3.0
➜ node --version
v6.11.0
➜ npm --version
3.10.10
➜ cordova --version
7.0.1

➜ forceios create
Enter your application type (native, native_swift, react_native, hybrid_local, hybrid_remote): hybrid_local
Enter your application name: externaltest
Enter the package name for your app (com.mycompany.myapp): com.external.test
Enter your organization name (Acme, Inc.): Acmee
Enter output directory for your app (leave empty for the current directory):


Creating ios hybrid_local application using Salesforce Mobile SDK
with app name: externaltest
package name: com.external.test
organization: Acmee

 in:                   externaltest

 from template repo:   https://github.com/forcedotcom/SalesforceMobileSDK-Templates#v5.0.1
      template path:   HybridLocalTemplate
      plugin repo:     https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.0.1

Creating a new cordova project.
/Users/xxxxx/Documents/GIT/test/sdk5test/externaltest /Users/xxxxx/Documents/GIT/test/sdk5test
[email protected] /Users/xxxxx/Documents/GIT/test/sdk5test/externaltest
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]

/Users/xxxxx/Documents/GIT/test/sdk5test
/Users/xxxxx/Documents/GIT/test/sdk5test/externaltest /Users/xxxxx/Documents/GIT/test/sdk5test
Using cordova-fetch for [email protected]
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.external.test
Name: externaltest
iOS project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving ios@~4.3.0 into config.xml file ...
/Users/xxxxx/Documents/GIT/test/sdk5test
/Users/xxxxx/Documents/GIT/test/sdk5test/externaltest /Users/xxxxx/Documents/GIT/test/sdk5test
/Users/xxxxx/Documents/GIT/test/sdk5test
forceios create failed

Command failed: cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.0.1 --force
Error: Failed to fetch plugin https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.0.1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 235 Error output:
npm ERR! addLocal Could not install /var/folders/xp/x1zhh8k17rz8vmgpm4v5g32h0000gn/T/npm-15283-dfbcd71a/git-cache-4fa7f2ca/91694e74a284facec322125ccb7da4471d2c4d62
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/xxxxx/.nvm/versions/node/v6.11.0/bin/node" "/Users/xxxxx/.nvm/versions/node/v6.11.0/bin/npm" "install" "https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.0.1" "--save"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/xxxxx/Documents/GIT/test/sdk5test/externaltest/node_modules/npm-debug.log

Force droid is incompatible with latest LTS

$ forcedroid create
Missing tools

Installed node version (8.12.0) is more than the maximum supported version (8.11).  Please downgrade your version of node.

Will it be upgraded?

pod updated using force react

Hi guys,

I've been trying to create a new react app using forcereact create and when the pod install it's running it fails with the following error:

Installing SQLCipher (3.4.2)
[!] /bin/bash -c 
set -e
./configure --enable-tempstore=yes --with-crypto-lib=commoncrypto CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_STAT3 -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_LOAD_EXTENSION -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS5 -DHAVE_USLEEP=1 -DSQLITE_MAX_VARIABLE_NUMBER=99999"; make sqlite3.c

checking build system type... i386-apple-darwin17.3.0
checking host system type... i386-apple-darwin17.3.0
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... 
configure: error: in `/x/x/Library/Caches/CocoaPods/Pods/Release/SQLCipher/3.4.2-f9fcf':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Any idea on how to fix this issue and complete the process?

Thanks in advance

oauth.logout() is not redirecting to differed login page

Hi,

I have created a react-native project using 'forcereact' package. The Project is working as expected. I have created a differed login page and the login flow is also working perfectly. But when i'm trying to call oauth.logout() to logout the user from the app, its not working as expected.

Expectation: After the logout the app should go back to the login page.
Current Behaviour: The app is working as expected if the differed login is not in place. After implementing the differed login, there is a blank screen after the user clicks on logout. As there is no callback for iOS in oauth.logout() I'm not sure when the logout is getting success.

How can i implement the logout() functionality properly, so that when the user clicks on logout, on successful logout the user is presented with differed login page in iOS.

package.json.txt

Camera plugin in forcedroid

I am working on a hybrid app which is based on forcedroid. but i'm not able to use latest cordova camera plugins (V2.4 or V3.0) in this. when i add plugin using CLI (cordova plugin add [email protected]) and try to build a project using android studio , it is not working. after add this latest plugin in project it shows resources issues like (sf__icon, classes in hybridapp folder) are missing. however old camera plugin (V2.1) is working fine. but i want to use this latest plugin in my forcedroid app. If anyone faced this issue before and fixed, please tell me steps. also i want to know how to update android platform of forcedroid app.

Salesforce created React Native Project and installed dependencies not Runing.

Hello Team,

I am facing issue in creating project using forcereact.
I created a new project from command forcereact createwithtemplate --templaterepouri=ReactNativeTemplate 
and it works fine on both iOS and android which has react native version 0.67.1.

I tried to install dependencies of latest version as following with command npm i:->
@react-native-community/geolocation
@terrylinla/react-native-sketch-canvas
appcenter
appcenter-analytics
appcenter-crashes

When I install the pods for iOS
it starts to fail
I get following error

'React/RCTRootView.h' file not found
error build: Undefined symbol: OBJC_CLASS$_CLLocationManager
error build: Undefined symbol: _kCLDistanceFilterNone
error build: Undefined symbol: _kCLLocationAccuracyBest
error build: Undefined symbol: _kCLLocationAccuracyHundredMeters
error build: 'React/RCTBundleURLProvider.h' file not found
'SalesforceSDKCore/SFSDKAppConfig.h' file not found
'SalesforceSDKCore/SFPushNotificationManager.h' file not found
'SalesforceSDKCore/SFDefaultUserManagementViewController.h' file not found
'SalesforceSDKCore/SalesforceSDKManager.h' file not found
'SalesforceSDKCore/SFUserAccountManager.h' file not found
'SalesforceReact/SalesforceReactSDKManager.h' file not found
'SalesforceSDKCore/SFLoginViewController.h' file not found
'SalesforceReact/SFSDKReactLogger.h' file not found

Methods to reproduce

  1. create new project with command forcereact createwithtemplate --templaterepouri=ReactNativeTemplate

  2. npm i @react-native-community/geolocation

  3. cd ios && pod install

  4. open xcworspace and run try to build iOS workspace with Xcode.

    And it won't Build and you will get the above errors.
    But If I do the above process with command RN Cli i.e.(npx react-native init AwesomeProject) then there's no error
    Can you please look into this issue ASAP

my react native info

System:    
OS: macOS 12.6    
CPU: (8) arm64 Apple M1    
Memory: 356.73 MB / 16.00 GB    
Shell: 5.8.1 - /bin/zsh  

Binaries:    
Node: 18.9.0 - /opt/homebrew/bin/node    
Yarn: 1.22.19 - /opt/homebrew/bin/yarn    
npm: 8.19.1 - /opt/homebrew/bin/npm    
Watchman: 2022.09.19.00 - /opt/homebrew/bin/watchman  

SDKs:    iOS SDK:      
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0    
Android SDK:      
API Levels: 31, 32, 33      
Build Tools: 29.0.3, 30.0.3, 31.0.0, 33.0.0      
System Images: android-30 | Google APIs ATD ARM 64 v8a, android-31 | ARM 64 v8a, android-31 | Google APIs ARM 64 v8a,
android-33 | Google APIs ARM 64 v8a, android-33 | Google APIs Intel x86 Atom_64  
IDEs:    
Android Studio: 2021.3 AI-213.7172.25.2113.9014738    
Xcode: 14.0/14A309 - /usr/bin/xcodebuild  

npmPackages:    
react: 16.9.0 => 16.9.0     react-native: 0.61.3 => 0.61.3  
 
npmGlobalPackages:    create-react-native-app: 3.8.0    react-native-cli: 2.0.1

forcehybrid: CordovaError: Failed to fetch plugin [email protected] via registry.

I am getting the an error when I try to use the forcehybrid tool to create a new app. Here is the command I am using to create the app;

forcehybrid create --platform=android --apptype=hybrid_remote --appname=SFHybridTest --packagename=com.swyftmobile.sfhybridtest --organization="Swyft Technology L.L.C." --startpage=one/one.app

I am using forcehybrid version 6.0. I am also using Node.js version 8.9.5.

Here is the full text from the console when I try to create a new app;


********************************************************************************
*
*   Creating android hybrid_remote application using Salesforce Mobile SDK
*     with app name:        SFHybridTest
*          package name:    com.swyftmobile.sfhybridtest
*          organization:    Swyft Technology L.L.C.
*
*     in:                   SFHybridTest
*
*     from template repo:   https://github.com/forcedotcom/SalesforceMobileSDK-Templates#v6.0.0
*          template path:   HybridRemoteTemplate
*          start page:      one/one.app
*          plugin repo:     https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v6.0.0
*
********************************************************************************

Creating a new cordova project.
/Users/davidfekke/Documents/android/projects/SFHybridTest /Users/davidfekke/Documents/android/projects
+ [email protected]
added 16 packages in 1.473s
/Users/davidfekke/Documents/android/projects
/Users/davidfekke/Documents/android/projects/SFHybridTest /Users/davidfekke/Documents/android/projects
Using cordova-fetch for [email protected]
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: com.swyftmobile.sfhybridtest
	Name: SFHybridTest
	Activity: MainActivity
	Android target: android-26
Subproject Path: CordovaLib
Subproject Path: app
Android project created with [email protected]
Android Studio project detected
Android Studio project detected
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~7.0.0 into config.xml file ...
/Users/davidfekke/Documents/android/projects
/Users/davidfekke/Documents/android/projects/SFHybridTest /Users/davidfekke/Documents/android/projects
Installing "com.salesforce" for android
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-whitelist" already installed on android.
Failed to install 'com.salesforce': CordovaError: Failed to fetch plugin [email protected] via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:215:37
    at _rejected (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:864:24)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:890:30
    at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:624:44
    at runSingle (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
    at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
/Users/davidfekke/Documents/android/projects
forcehybrid failed

Command failed: cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v6.0.0 --force
Error: Failed to fetch plugin [email protected] via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module

`create` fails within directory with spaces

Platform: Windows 10
forcedroid Version: 5.0.0

Problem:
Run forcedroid create from within a folder with a space in the name (C:\Projects\My App\). Git fails to clone due to the path arguments not being wrapped in quotes. The folder with spaces could occur at any level, not just the current directory.

Xcode build failes

App created using "forcehybrid create" fails in XCode Build.

Xcode Version: 11.x
Cordova: 9.x

Latest cordova-android for hybrid app

Hi,

When I create a new hybrid android app using forcehybrid cli, I see it is creating the project with cordova-android of version 8.1.0. But in this repo it is updated to 9.0.0 (constant.js)

Is it because npm is not updated with latest package ? If yes, can you please update the npm package ?

Force react modules

Hello guys,

We are planning to build a react native app that connects to Salesforce. For now this will be a very simple one so we do not need most of the modules included in the whole package.

I was wondering if there is any way to create a new forcereact app specifying the modules to be installed, SalesforceSDKCore only for instance.

If this can not be done using forcereact would it be possible to do it manually.

Thank you very much in advance,

Albert

Salesforce created React Native Project and installed dependencies not Runing

I am facing issue in creating project using forcereact.
I created a new project from command forcereact createwithtemplate --templaterepouri=ReactNativeTemplate
and it works fine on both iOS and android which has react native version 0.70.1

I tried to install dependencies of latest version

and when i am trying to build the Xcode
i get the following error

error build: 5 duplicate symbols for architecture arm64

    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_fsQueue' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_commonTaskQueue' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtil.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlob.o)
duplicate symbol '_fileStreams' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilFS.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobFS.o)
duplicate symbol '_expirationTable' in:
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/react-native-blob-util/libreact-native-blob-util.a(ReactNativeBlobUtilNetwork.o)
    /Users/user/Library/Developer/Xcode/DerivedData/dbb-fbosqaxkivehjfcicyzidneceazd/Build/Products/Debug-iphonesimulator/rn-fetch-blob/librn-fetch-blob.a(RNFetchBlobNetwork.o)
ld: 5 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please get me the permanent solution

my react native info

System:
OS: macOS 12.6
CPU: (8) arm64 Apple M1
Memory: 356.73 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh

Binaries:
Node: 18.9.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.19.1 - /opt/homebrew/bin/npm
Watchman: 2022.09.19.00 - /opt/homebrew/bin/watchman

SDKs: iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK:
API Levels: 31, 32, 33
Build Tools: 29.0.3, 30.0.3, 31.0.0, 33.0.0
System Images: android-30 | Google APIs ATD ARM 64 v8a, android-31 | ARM 64 v8a, android-31 | Google APIs ARM 64 v8a,
android-33 | Google APIs ARM 64 v8a, android-33 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 14.0/14A309 - /usr/bin/xcodebuild

npmPackages:
react: 16.9.0 => 16.9.0 react-native: 0.61.3 => 0.61.3

npmGlobalPackages: create-react-native-app: 3.8.0 react-native-cli: 2.0.1

Salesforce created React Project not Runing

Hello Team,

I am facing issue in creating project using forcereact. I have tried many a time constantly receiving erros.

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_SFQuerySpec", referenced from:
objc-class-ref in SFSmartStoreReactBridge.o
"OBJC_CLASS$_SFSoupIndex", referenced from:
objc-class-ref in SFSmartStoreReactBridge.o
"OBJC_CLASS$_SFSDKDevAction", referenced from:
objc-class-ref in SalesforceReactSDKManager.o
"OBJC_CLASS$_SFSoupSpec", referenced from:
objc-class-ref in SFSmartStoreReactBridge.o
"OBJC_CLASS$_SalesforceSDKManager", referenced from:
objc-class-ref in SFOauthReactBridge.o
"_RCTRegisterModule", referenced from:
+[SFMobileSyncReactBridge load] in SFMobileSyncReactBridge.o
+[SFNetReactBridge load] in SFNetReactBridge.o
+[SFOauthReactBridge load] in SFOauthReactBridge.o
+[SFSmartStoreReactBridge load] in SFSmartStoreReactBridge.o
"OBJC_CLASS$_SFUserAccountManager", referenced from:
objc-class-ref in SFOauthReactBridge.o
"_kSFNotificationUserDidLogout", referenced from:
-[SFOauthReactBridge logoutCurrentUser:callback:] in SFOauthReactBridge.o
"OBJC_CLASS$_SFStoreCursor", referenced from:
objc-class-ref in SFSmartStoreReactBridge.o
"OBJC_CLASS$_SFRestRequest", referenced from:
objc-class-ref in SFNetReactBridge.o
"_RCTMakeError", referenced from:
-[SFMobileSyncReactBridge getSyncStatus:callback:] in SFMobileSyncReactBridge.o
-[SFMobileSyncReactBridge deleteSync:callback:] in SFMobileSyncReactBridge.o
-[SFMobileSyncReactBridge syncDown:callback:] in SFMobileSyncReactBridge.o
-[SFMobileSyncReactBridge reSync:callback:] in SFMobileSyncReactBridge.o
-[SFMobileSyncReactBridge cleanResyncGhosts:callback:] in SFMobileSyncReactBridge.o
-[SFMobileSyncReactBridge syncUp:callback:] in SFMobileSyncReactBridge.o
-[SFMobileSyncReactBridge handleCleanReSyncGhosts:numRecords:callback:] in SFMobileSyncReactBridge.o
...
"OBJC_CLASS$_SFSmartStore", referenced from:
objc-class-ref in SFMobileSyncReactBridge.o
objc-class-ref in SFSmartStoreReactBridge.o
(maybe you meant: OBJC_CLASS$_SFSmartStoreReactBridge)
"OBJC_CLASS$_SFRestAPI", referenced from:
objc-class-ref in SFNetReactBridge.o
"_kDefaultSmartStoreName", referenced from:
-[SFMobileSyncReactBridge storeName:] in SFMobileSyncReactBridge.o
-[SFSmartStoreReactBridge storeName:] in SFSmartStoreReactBridge.o
-[SFSmartStoreReactBridge internalCursorId:withGlobal:andStoreName:] in SFSmartStoreReactBridge.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation).

1. I have already tried removing and readding POD file.
2. Tried reinstalling project

I am using

Salesforce react 8.3.0
Xcode 12.3

I have tried on original react native without salesforce and it is working .
Screen Shot 2020-12-25 at 12 31 44 PM
Screen Shot 2020-12-25 at 12 37 22 PM

forcereact create fails due to Cocoa Pods failing to install Boost 1.59.0

I've been trying to do the Trailhead React Native tutorial but am at this point not able to find a way to actually run forcereact create for ios without running into install issues with the boost library (1.59.0).

Installing boost (1.59.0)
[!] /usr/bin/tar xfz /Users/MYDIRECTORY/dev/sftestapp/ios/Pods/boost/file.tgz -C /Users/MYDIRECTORY/dev/sftestapp/ios/Pods/boost

tar: Unrecognized archive format
tar: Error exit delayed from previous errors.


[!] 'boost' uses the unencrypted http protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts in there. Please reach out to the library author to notify them of this security issue.
/Users/MYDIRECTORY/dev
forcereact failed

I think this might have been fixed with the latest RC but at this point I can't work out how to get this installer to actually work beyond this point.

I've tried doing a default react-native init app and that works fine.

I've tried the quick fix solutions referenced at CocoaPods/cocoapods-downloader#69 as well but can't get those to work with the forcereact CLI either.

gradle-7.2.0-all.zip can not be loaded

Tested with forcehybrid version 10.2.0

With a basic setup created by hybridforce (using type hybrid_local type)
forcehybrid create

after that running
cordova run android

I am getting an error during download of gradle like

Downloading https://services.gradle.org/distributions/gradle-7.2.0-all.zip

Exception in thread "main" java.io.FileNotFoundException: https://downloads.gradle-dn.com/distributions/gradle-7.2.0-all.zip
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1993)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:83)
        at org.gradle.wrapper.Download.download(Download.java:66)
        at org.gradle.wrapper.Install$1.call(Install.java:68)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)

When I open that link https://services.gradle.org/distributions/gradle-7.2.0-all.zip I get an error saying "The specified key does not exist"

SQLite Issue

I created a Sample app using Forcehybrid CLI. As per the documentation https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/reference_current_versions.htm?search_text=sqlite

Sqlite plugin, will it be installed by default by the mobile SDK? If so, i cannot see the plugin in the CLI created project.

I tried to install plugin manually, but ended up in the error Must not define both SQLITE_OMIT_DECLTYPE and SQLITE_ENABLE_COLUMN_METADATA

Issue raised in github https://github.com/xpbrew/cordova-sqlite-storage/issues/906#issue-549481346

Please suggest.

Remove dependency on use_frameworks! in IOS Podfile

In your Podfile it requires use_frameworks for some reason. This is not good for React Native 0.69.3. The main reason is react-native-maps, react-native-video, and @react-native-firebase/* and several other super popular packages do not work under use_frameworks. React Native has deprecated use of use_frameworks since 0.68+. I have no idea how to fix this to work without use_frameworks, but I think your team should work on it. Then this library will be super useful for sure.

I heard there might be a static solution for these 2 libraries. Using something like: https://github.com/joncardasis/cocoapods-user-defined-build-types - but I tried a bunch of things and cannot get all to work. Maybe you could try RNFirebase and Maps?

platform :ios, '14.0'
use_frameworks!

Missing tools

I get the following error message after I enter the application type;

Missing tools

Installed git version (2.9.0) is less than the minimum required version (2.10).  Please update your version of git.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.