You need to sign in to do that
Don't have an account?
Cesar_RN
Add Salesforce SDK to an existing iOS (Objetive C) project. How to do it?
Hello all.
I have a stable project on iOS, with Objetive C.
I use cocoapods. This is my podFile:
“
platform :ios, 7.0
pod 'RestKit', '~> 0.20.0rc'
pod 'FMDB'
# pod 'FMDB/FTS' # FMDB with FTS
# pod 'FMDB/standalone' # FMDB with latest SQLite amalgamation source
# pod 'FMDB/standalone/FTS' # FMDB with latest SQLite amalgamation source and FTS
pod 'FMDB/SQLCipher' # FMDB with SQLCipher
pod 'CocoaLumberjack' #Fichero de log dentro de la app https://github.com/CocoaLumberjack/CocoaLumberjack
pod 'mailcore2-ios' #Enviar ficheros de log por correo
pod 'TesseractOCRiOS', '4.0.0' #OCR
“
I can install Salesforce SDK with pods, without any problem:
“
target 'andromedaTecnico' do
source 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Specs.git' # need to be first
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'SalesforceSDKCore'
pod 'SalesforceNetwork'
pod 'SalesforceRestAPI'
pod 'SmartStore'
pod 'SmartSync'
end
pod 'mailcore2-ios' #Enviar ficheros de log por correo
pod 'TesseractOCRiOS', '4.0.0' #OCR
“
But, when I try to use a class, SalesforceSDKManager by example, I obtain some errors.
I followed this articles:
https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/ios_cocoapods.htm
https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/ios_native_app_delegate.htm
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SalesforceSDKManager”
I tried a lot of things, configurations, … and always I have new and different errors.
Have I forgotten any step?
Thanks a lot.
PD: I use El Capitan, Xcode 7, Objetive C and I can´t change to Swift.
I have a stable project on iOS, with Objetive C.
I use cocoapods. This is my podFile:
“
platform :ios, 7.0
pod 'RestKit', '~> 0.20.0rc'
pod 'FMDB'
# pod 'FMDB/FTS' # FMDB with FTS
# pod 'FMDB/standalone' # FMDB with latest SQLite amalgamation source
# pod 'FMDB/standalone/FTS' # FMDB with latest SQLite amalgamation source and FTS
pod 'FMDB/SQLCipher' # FMDB with SQLCipher
pod 'CocoaLumberjack' #Fichero de log dentro de la app https://github.com/CocoaLumberjack/CocoaLumberjack
pod 'mailcore2-ios' #Enviar ficheros de log por correo
pod 'TesseractOCRiOS', '4.0.0' #OCR
“
I can install Salesforce SDK with pods, without any problem:
“
target 'andromedaTecnico' do
source 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Specs.git' # need to be first
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'SalesforceSDKCore'
pod 'SalesforceNetwork'
pod 'SalesforceRestAPI'
pod 'SmartStore'
pod 'SmartSync'
end
pod 'mailcore2-ios' #Enviar ficheros de log por correo
pod 'TesseractOCRiOS', '4.0.0' #OCR
“
But, when I try to use a class, SalesforceSDKManager by example, I obtain some errors.
I followed this articles:
https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/ios_cocoapods.htm
https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/ios_native_app_delegate.htm
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SalesforceSDKManager”
I tried a lot of things, configurations, … and always I have new and different errors.
Have I forgotten any step?
Thanks a lot.
PD: I use El Capitan, Xcode 7, Objetive C and I can´t change to Swift.
I update cocoa pods and I have new errors.
The error is with Restkit, errors in the *.h files. Very rare /so strange.
In "lcl_RK.h"
// Log components, prefixed with 'RKlcl_c'.
enum _RKlcl_enum_component_t {
The compiler expect a ";" after enum.
Why?
Salesforce SDK includes Restkit? If i delete the especific pod to install Restkit the library isn´t found.
Any ideas?
Thanks.
I tried this option:
https://github.com/CocoaPods/cocoapods-deintegrate
Then, I installed this pod:
target 'andromedaTecnico' do
source 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Specs.git' # need to be first
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'SalesforceSDKCore'
pod 'SalesforceNetwork'
pod 'SalesforceRestAPI'
pod 'SmartStore'
pod 'SmartSync'
end
pod 'mailcore2-ios' #Enviar ficheros de log por correo
pod 'TesseractOCRiOS', '4.0.0' #OCR
I cleaned the project, build and obtain this error:
ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas?
Thanks