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

Cocoapods installation doesn't work with use_frameworks! #1251

Closed
paweldudek opened this issue Nov 20, 2015 · 6 comments
Closed

Cocoapods installation doesn't work with use_frameworks! #1251

paweldudek opened this issue Nov 20, 2015 · 6 comments

Comments

@paweldudek
Copy link
Contributor

  1. Create a new, empty project
  2. Add a Podfile with pod 'SalesforceMobileSDK-iOS' as dependency
  3. Add use_frameworks! to Podfile to enable frameworks (which is required if you have Swift dependencies)
  4. Try to compile the app.

Result: The app does't compile - headers seem to be incorrectly configured in (at least) .pch file, didn't go any further.

Expected: The app should compile just normally.

@powerje
Copy link

powerje commented Nov 20, 2015

fyi, this is a dupe of #1072

@wmathurin
Copy link
Contributor

FYI, fixed in unstable (with that commit ebcff22). Will be in our next release.

@mgetzbw
Copy link
Contributor

mgetzbw commented Dec 10, 2015

@wmathurin verified in unstable that it's still not working

@khawkins
Copy link
Contributor

Can you post your Podfile? I'm able to install and run with the following Podfile for my app:

use_frameworks!
pod 'SalesforceMobileSDK-iOS/SalesforceRestAPI', :git => 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS.git', :branch => 'unstable', :submodules => true

I'm using CocoaPods 0.39.0.

@khawkins
Copy link
Contributor

Note that with the next (unstable) release, we've added a default subspec, SalesforceSDKCore. So if you need to use any of the satellite dependencies, like SalesforceRestAPI or SmartSync, etc., you'll need to explicitly specify that subspec in your Podfile.

@mgetzbw
Copy link
Contributor

mgetzbw commented Dec 11, 2015

@khawkins this is rather embarrassing it appears my report was in error I had forgotten to do a pod update when testing, apologies

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

5 participants