-
Notifications
You must be signed in to change notification settings - Fork 144
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
4.0.0 with Cordova 9.0.0 & Cordova-ios 5.0.1 "Branch.h" not found #602
Comments
Update: I realised I am using XCode 10.3, upgrading XCode now to try again. |
No improvement from updating to XCode 11.1 |
This is a known issue due to a bug in Cordova. You must build from Xcode by opening the workspace. Unfortunately, it would be a significant amount of effort for us to workaround it in our iOS SDK. |
I've tried doing it in XCode 10.3, I get same error.
I will try again in XCode 11.1
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: echo-branch <notifications@github.com>
Sent: Thursday, October 24, 2019 9:32:57 PM
To: BranchMetrics/cordova-ionic-phonegap-branch-deep-linking-attribution <cordova-ionic-phonegap-branch-deep-linking-attribution@noreply.github.com>
Cc: Peter Lyon <peter.lyon@edge10group.com>; Author <author@noreply.github.com>
Subject: Re: [BranchMetrics/cordova-ionic-phonegap-branch-deep-linking-attribution] 4.0.0 with Cordova 9.0.0 & Cordova-ios 5.0.1 "Branch.h" not found (#602)
This is a known issue due to a bug in Cordova. You must build from Xcode by opening the workspace.
Unfortunately, it would be a significant amount of effort for us to workaround it in our iOS SDK.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#602?email_source=notifications&email_token=ALVFMSFXCEIW6NYZLU7ZRJTQQHS5TA5CNFSM4JEUE2J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGAESQ#issuecomment-546046538>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALVFMSD6KT7XTY42HLIWPRTQQHS5TANCNFSM4JEUE2JQ>.
|
I just tried to archive from XCode 11.1 and experienced the same issue.
In Where does My config.xml (the branch bit) like this:
I have npm installed Is there some build step I could be missing? |
Could you confirm you're opening the workspace and not the project? Cocoapods generates a workspace that includes the library as a separate project. |
Feeling stupid now as usual :) that was my issue. Thanks for your help! |
This is very strange. So only solution is to build using xcode? I have also failed to solve it but I am fairly new to ios and cordova also found new replies on this old thread from 2016 |
@echo-branch I tried building from Xcode using the workspace and still got the error. I'm new to building with Xcode so I'd like to confirm that I took the right steps. In Xcode, I closed all open windows then opened My env: I tried forking the Cordova ios repo and commenting out the |
I tried all you did and was still having the same problem. The following worked for me in the end: Remove any current ios platform from your project (cordova platform remove ios) Other Note: I also got an error message about 'Insecure world writable dir' during the process of adding ios platform back in. If you experience the same use the following command to set appropriate permissions and re-add ios platform Hope that fixes it for you! |
Curious if anyone from Branch is active here or helping on this plugin for updates like this? |
@Mapiac indeed myself and an associate are new maintainers for these plugins, we're submitting some work today and tomorrow to address most of these issues. In fact you can check out the PR I have open that resolves this and other issues and, at least for me, seems also to resolve the cli-build issue: #613 |
@codinronan hi, CLI builds still fail, see #633 :( |
@rupertbear hey, are CLI builds working for you after all that? Or only manual Xcode builds? |
Any updates here? Still getting the same error. |
@MehulBhanshali I forked and fixed that here https://github.com/bobrosoft/cordova-ionic-phonegap-branch-deep-linking-attribution You can use it with:
However, in #633 they said that this can be solved by using CocoaPods >= 1.8.4 (I didn't try). |
hi @bobrosoft .. I tried the cocoaPods version and it didn't work |
Sorry, late reply but if you mean does 'ionic cordova build ios' work after that then yes it does. Open workspace file in XCode then for final compilation/deployment |
@bobrosoft that doesn't work either. I still get branch.h file not found |
@MehulBhanshali you should be 100% sure that my version of the plugin installed. You should delete all temporary files, |
Hi,
I've been trying to get
cordova-ios
withbranch-cordova-sdk
to build for IOS. It works fine for android (on windows) with my current setup but I get the following build error on mac while building for IOS:I guess that something is failing to build branch.h, or it's a path issue?
There is an error that comes out of pod install when I run
cordova plugin add branch-cordova-sdk
[!] The [Debug] target overrides the 'LD_RUNPATH_SEARCH_PATHS' build setting
[!] The [Release] target overrides the 'LD_RUNPATH_SEARCH_PATHS' build setting
But I have tried manually adding
$(inherited):
to those paths (where they are defined in the xcconfig files) and rerunning pod install which then runs without warnings, but still got the same failure when runningcordova build ios
I've also tried adding and re-adding the platform and plugin etc
The text was updated successfully, but these errors were encountered: