• Cesar_RN
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
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.

 
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.

 

Hi,

The Salesforce iOS SDK contains two classes: SFRestAPI and SFRestRequest. Basically, we can invoke the methods of these classes to retrieve data from Salesforce and also update/delete etc..

I guess that they use a wrapper of RestKit methods combined with the SFOAuth that takes care of authentification tasks(refreshing tokens...) to enable secured access to server.

But RestKit has a powerful object mapping that takes a JSON response and populates the fields of a mapped object. It is one of the best features of RestKit and the SDK does not provide access to such features.

Do you know if there is a way to access these capabilities using the current SDK?

If not, any source of conversion of Salesforces fields types to iOS known data types?

 

Thanks