You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (Jira)" <ji...@apache.org> on 2019/11/29 11:34:00 UTC

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

     [ https://issues.apache.org/jira/browse/CB-14057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-14057.
-----------------------------
    Resolution: Cannot Reproduce

in 5.x.x the Podfile and CocoaPods got improved, so might be fixed. I can't reproduce with any of my plugins.
Update to cordova-ios 5.x.x and if the problem is still present create a new issue on https://github.com/apache/cordova-ios and provide a sample project and plugin to properly test.

> 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: Christoph Wilhelms
>            Priority: Minor
>
> 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
(v8.3.4#803005)

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