BranchMetrics / cordova-ionic-phonegap-branch-deep-linking-attribution

The Branch Cordova Ionic Phonegap SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/apps/cordova-phonegap-ionic/
MIT License
233 stars 145 forks source link

Branch.io build issue with iOS #606

Closed rahulathi5 closed 4 years ago

rahulathi5 commented 4 years ago

I am using this with my Ionic 4 app and was successful in building an app for android, however when trying to build it for iOS on XCode, I am getting the error, "Branch.h file not found".

Ionic info -

Ionic:

   ionic (Ionic CLI)             : 4.3.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.7.1
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.2.1
   @angular/cli                  : 8.2.1
   @ionic/angular-toolkit        : 2.0.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 18 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/rahul/Library/Android/sdk/)
   ios-deploy        : 1.9.4
   NodeJS            : v10.13.0 (/usr/local/bin/node)
   npm               : 6.4.1
   OS                : macOS
   Xcode             : Xcode 10.3 Build version 10G8

List of plugins in my current project -

branch-cordova-sdk 4.0.0 "branch-cordova-sdk"
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-custom-config 5.1.0 "cordova-custom-config"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-facebook4 6.2.0 "Facebook Connect"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-opener2 2.2.1 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-filechooser 1.2.0 "File Chooser"
cordova-plugin-filepicker 1.1.6 "File Picker"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-googleplus 8.2.0 "Google SignIn"
cordova-plugin-inappbrowser 3.1.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
cordova-plugin-request-location-accuracy 2.3.0 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-x-socialsharing 5.6.2 "SocialSharing"
cordova.plugins.diagnostic 5.0.1 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
onesignal-cordova-plugin 2.7.0 "OneSignal Push Notifications"

And my Podfile looks like -

platform :ios, '8.0'
target 'Huddle Spot' do
    project 'Huddle Spot.xcodeproj'
    pod 'OneSignal', '2.11.0'
    pod 'GoogleSignIn', '4.4.0'
    pod 'FBSDKCoreKit', '5.7.0'
    pod 'FBSDKLoginKit', '5.7.0'
    pod 'FBSDKShareKit', '5.7.0'
    pod 'Branch'
end

Any help would be appreciated.

Thank You

MrPro100 commented 4 years ago

The same issue

sverdlov commented 4 years ago

You can downgrade to v3.2.0, it resolves this problem

echo-branch commented 4 years ago

This should be resolved in the latest release.