You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Chris Williams (JIRA)" <ji...@apache.org> on 2018/04/27 07:15:00 UTC

[jira] [Created] (CB-14057) cordova build command fails when including FBSDK pods

Chris Williams created CB-14057:
-----------------------------------

             Summary: cordova build command fails when including FBSDK pods
                 Key: CB-14057
                 URL: https://issues.apache.org/jira/browse/CB-14057
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-ios
    Affects Versions: cordova-ios@4.5.4
            Reporter: Chris Williams
            Assignee: Suraj Pindoria


Including the FBSDK as a pod causes the build to fail using the command line.

Building with Xcode still works.

 

Command that fails:

cordova build ios --release


Error Message:

'Bolts/BFAppLink.h' file not found
#import <Bolts/BFAppLink.h>

 

The plugin includes the FBSDK as:

<framework src="FBSDKCoreKit" type="podspec" spec="4.32.0" />
<framework src="FBSDKLoginKit" type="podspec" spec="4.32.0" />
<framework src="FBSDKShareKit" type="podspec" spec="4.32.0" />


The PodFile looks like:

# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '8.0'
target 'MegaFameCasino' do
 project 'MegaFameCasino.xcodeproj'
 pod 'FBSDKCoreKit', '4.32.0'
 pod 'FBSDKLoginKit', '4.32.0'
 pod 'FBSDKShareKit', '4.32.0'
end

 

The FBSDKCoreKit pod depends on the Bolts pod and includes header files from it.


----------------------------------------------------------------------------------------------

I think there may be some sort of issue with the ${SRCROOT} variable in xcodebuild or
something cordova is doing that I couldn't find

Looking at the commands run by xcodebuild, the include paths are getting set as ios/Pods/Pods/xxxx
I assume this is incorrect

-I/project-path/platforms/ios/Pods/Pods/Headers/Public/Bolts

If I go into "platforms/ios/Pods/Target Support Files/Pods/MegaFameCasino/Pods-MegaFameCasino.release.xcconfig"
and remove the trailing /Pods from PODS_ROOT:

PODS_ROOT = ${SRCROOT}/Pods ----> PODS_ROOT = ${SRCROOT}

then the includes look correct:

-I/project-path/platforms/ios/Pods/Headers/Public/Bolts

 

Doing this gets the build further down past the pods, but it will then fail later at

diff: /project-path/platforms/ios/Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

 

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org