Giter VIP home page Giter VIP logo

Comments (24)

aaustin avatar aaustin commented on July 17, 2024 1

Yessir - that's the one. I believe I found your issue, which was a result of me deploying to NPM earlier but not updating the plugin.xml. I've just resolved the github plugin.xml here: 0a8ccb0

from cordova-ionic-phonegap-branch-deep-linking-attribution.

harshabonthu avatar harshabonthu commented on July 17, 2024

@gabaum10 I guess npm update with fix wasn't released yet.

FIx for your issue would be goto Plugins/io.branch.sdk/BranchSDK.h and change #import 'Branch/Branch.h' to #import 'Branch.h'

from cordova-ionic-phonegap-branch-deep-linking-attribution.

gabaum10 avatar gabaum10 commented on July 17, 2024

I would if I could, but I've switched over to building through Intel XDK because I don't have access to a mac. Modifying the plugin source files currently is not supported by them. It pulls the files fresh from NPM every build. I have to wait until the fix is pushed there.

I could have sworn @aaustin said it was fixed in #71, but it's stil not working. The version in NPM is 2.0.5 as per: https://www.npmjs.com/package/branch-cordova-sdk

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

I definitely fixed the header so that it'd be #import 'Branch.h' for 2.0.5. Perhaps you need to delete and re-install? Let me bump to 2.0.6 and do it again to be 1000% sure.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

Deployed again, with the header definitely changed. I have to change it back before committing since we're using the framework for the git repo.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

gabaum10 avatar gabaum10 commented on July 17, 2024

I verified the code being sent with the build. That now looks right. Unfortunately, there are a bunch of other errors now. Does this actually work when you guys test it? Am I doing something wrong?

I see two errors now:

CompileC build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/BranchSDK.o Veoci\ -\ DEV/Plugins/io.branch.sdk/BranchSDK.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd .../Veoci_Dev/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../usr/bin:/Applications/Xcode.app/Contents.../usr/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools:/platform-tools"
/Applications/Xcode.app/Contents.../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -gmodules -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../SDKs/iPhoneOS9.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-generated-files.hmap -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-own-target-headers.hmap -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-all-target-headers.hmap -iquote .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-project-headers.hmap -I.../Veoci_Dev/platforms/ios/build/device/include -I.../Veoci_Dev/platforms/ios/build/device/usr/local/lib/include -I.../Veoci_Dev/platforms/ios/build/UninstalledProducts/include -I.../Veoci_Dev/platforms/ios/build/device -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/DerivedSources/armv7 -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/DerivedSources -F.../Veoci_Dev/platforms/ios/build/device -include .../Veoci_Dev/platforms/ios/build/sharedpch/Veoci\ -\ DEV-Prefix-aeiknbvxqnglcncwjfppntussout/Veoci\ -\ DEV-Prefix.pch -MMD -MT dependencies -MF .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/BranchSDK.d --serialize-diagnostics .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/BranchSDK.dia -c .../Veoci_Dev/platforms/ios/Veoci\ -\ DEV/Plugins/io.branch.sdk/BranchSDK.m -o .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/BranchSDK.o
In file included from .../Veoci_Dev/platforms/ios/Veoci - DEV/Plugins/io.branch.sdk/BranchSDK.m:8:
.../Veoci_Dev/platforms/ios/Veoci - DEV/Plugins/io.branch.sdk/BranchSDK.h:9:9: fatal error: 'Branch/BranchLinkProperties.h' file not found
#import "Branch/BranchLinkProperties.h"
^
1 error generated.

CompileC build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/AppDelegate+BranchSdk.o Veoci\ -\ DEV/Plugins/io.branch.sdk/AppDelegate+BranchSdk.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd .../Veoci_Dev/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../usr/bin:/Applications/Xcode.app/Contents.../usr/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools:/platform-tools"
/Applications/Xcode.app/Contents.../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -gmodules -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../SDKs/iPhoneOS9.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-generated-files.hmap -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-own-target-headers.hmap -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-all-target-headers.hmap -iquote .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Veoci\ -\ DEV-project-headers.hmap -I.../Veoci_Dev/platforms/ios/build/device/include -I.../Veoci_Dev/platforms/ios/build/device/usr/local/lib/include -I.../Veoci_Dev/platforms/ios/build/UninstalledProducts/include -I.../Veoci_Dev/platforms/ios/build/device -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/DerivedSources/armv7 -I.../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/DerivedSources -F.../Veoci_Dev/platforms/ios/build/device -include .../Veoci_Dev/platforms/ios/build/sharedpch/Veoci\ -\ DEV-Prefix-aeiknbvxqnglcncwjfppntussout/Veoci\ -\ DEV-Prefix.pch -MMD -MT dependencies -MF .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/AppDelegate+BranchSdk.d --serialize-diagnostics .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/AppDelegate+BranchSdk.dia -c .../Veoci_Dev/platforms/ios/Veoci\ -\ DEV/Plugins/io.branch.sdk/AppDelegate+BranchSdk.m -o .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/AppDelegate+BranchSdk.o
.../Veoci_Dev/platforms/ios/Veoci - DEV/Plugins/io.branch.sdk/AppDelegate+BranchSdk.m:10:9: fatal error: 'Branch/Branch.h' file not found
#import <Branch/Branch.h>

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

Looks like there were some hidden spots. Try again? I went through all files now.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

gabaum10 avatar gabaum10 commented on July 17, 2024

Now I'm getting a different error that does not happen if I exclude the plugin:

Ld build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/Veoci\ -\ DEV normal armv7
cd .../Veoci_Dev/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../usr/bin:/Applications/Xcode.app/Contents.../usr/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools:/platform-tools"
/Applications/Xcode.app/Contents.../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents.../Platforms/iPhoneOS.platform.../SDKs/iPhoneOS9.2.sdk -L.../Veoci_Dev/platforms/ios/build/device -L.../Veoci_Dev/platforms/ios/Veoci\ -\ DEV/Plugins/com.pushwoosh.plugins.pushwoosh -F.../Veoci_Dev/platforms/ios/build/device -filelist .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/Veoci\ -\ DEV.LinkFileList -miphoneos-version-min=8.0 -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -framework AssetsLibrary .../Veoci_Dev/platforms/ios/build/device/libCordova.a -framework CoreGraphics -framework MobileCoreServices -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -weak_framework SystemConfiguration -weak_framework AudioToolbox .../Veoci_Dev/platforms/ios/Veoci\ -\ DEV/Plugins/com.pushwoosh.plugins.pushwoosh/Pushwoosh -framework Security -framework Storekit -lstdc++ -lz -Xlinker -dependency_info -Xlinker .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/Veoci\ -\ DEV_dependency_info.dat -o .../Veoci_Dev/platforms/ios/build/Veoci\ -\ DEV.build/Release-iphoneos/Veoci\ -\ DEV.build/Objects-normal/armv7/Veoci\ -\ DEV
Undefined symbols for architecture armv7:
"OBJC_CLASS$_CSSearchableItem", referenced from:
objc-class-ref in BranchCSSearchableItemAttributeSet.o
"OBJC_METACLASS$_CSSearchableItemAttributeSet", referenced from:
OBJC_METACLASS$_BranchCSSearchableItemAttributeSet in BranchCSSearchableItemAttributeSet.o

** BUILD FAILED **

Looking around, it seems this is because of the way some of the files are linked? I have never seen this before, but I'm building via CLI-5.1.1. Is that not supported by this plugin?

Not sure if this SO answer helps or not. I personally have no depth here so I can't be of much help.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

So, with the update, we required CoreSpotlight.framework. I've asked our contractors to attempt to bundle this into the npm install process, but they haven't done this yet. Can you try added it it/

from cordova-ionic-phonegap-branch-deep-linking-attribution.

gabaum10 avatar gabaum10 commented on July 17, 2024

I have no idea how to do that. Like I mentioned before, I'm out of my depth here. I was just hoping to use the plugin for the end goal. I guess I'll just wait for the real fix to go out.

Sorry I'm not more helpful fixing this stuff. Some day I'll learn more about the actual cordova process.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

harshabonthu avatar harshabonthu commented on July 17, 2024

@aaustin I noticed these frameworks listed in docs, but wasn't sure if the documentation was accurate as the functionality was working without adding them.

https://dev.branch.io/getting-started/sdk-integration-guide/advanced/ios/#install-the-sdk-manually

from cordova-ionic-phonegap-branch-deep-linking-attribution.

gabaum10 avatar gabaum10 commented on July 17, 2024

So this actually builds using cli-6.0.0, but not cli-5.1.1. I assume cli-6.0 includes the necessary dependencies as part of the cordova base package. For policy reasons, I can't use 6.0.0 at the moment. That's why I am hoping you could package up any dependencies in the package so cli-5.1.1 could be used for production.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

gabaum10 avatar gabaum10 commented on July 17, 2024

I reverted back to my old build process using PGB for now since that supports cli-6.0.0. I still think packaging up the dependencies would be a good improvement, but not strictly speaking blocking for me at least.

Now if I could only figure out how to get universal links working...

from cordova-ionic-phonegap-branch-deep-linking-attribution.

renesansz avatar renesansz commented on July 17, 2024

@gabaum10 I'm trying to replicate the issue. But when I use v5.1.1, nothing happens upon building the app. Could you provide some steps on replicating the issue?

from cordova-ionic-phonegap-branch-deep-linking-attribution.

renesansz avatar renesansz commented on July 17, 2024

@gabaum10 , could you try this solution?
http://phonegap.com/blog/2015/06/16/phonegap-updated-on-build/

from cordova-ionic-phonegap-branch-deep-linking-attribution.

gabaum10 avatar gabaum10 commented on July 17, 2024

I just switched over to cli-6.0.0. It's building fine with that and I'm not going to fight it anymore.

I was building on Phonegap build using the <preference name='phonegap-version' value='cli-5.1.1' /> parameter and it was failing.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

bjornbos avatar bjornbos commented on July 17, 2024

I'm using Cordova 6.1, but this error still occurs:

../Plugins/io.branch.sdk/BranchSDK.h:8:9: fatal error: 'Branch/Branch.h' file not found
1>  #import <Branch/Branch.h>

from cordova-ionic-phonegap-branch-deep-linking-attribution.

qimingfang avatar qimingfang commented on July 17, 2024

I'm getting this as well. Could it be due to the new release?

from cordova-ionic-phonegap-branch-deep-linking-attribution.

renesansz avatar renesansz commented on July 17, 2024

@bjornbos @qimingfang ,
I'll gonna take a look on this again, will give you a response once I was able to find the cause of the problem.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

Hey @qimingfang - The above issue was resolved. You're getting the Branch.h not found? Or is it a different error? Also, are you using NPM or the Github repo?

from cordova-ionic-phonegap-branch-deep-linking-attribution.

qimingfang avatar qimingfang commented on July 17, 2024

@aaustin i'm also getting io.branch.sdk/BranchSDK.h:8:9: fatal error: 'Branch/Branch.h' file not found

I added this through the github link in the README. Didn't realize there was an npm for this. Is this the one? https://tonicdev.com/npm/branch-cordova-sdk

from cordova-ionic-phonegap-branch-deep-linking-attribution.

renesansz avatar renesansz commented on July 17, 2024

oh, thanks @aaustin , will re-close the issue now.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

qimingfang avatar qimingfang commented on July 17, 2024

thanks @aaustin! your fix worked well :) are you planning on bumping the patch version for this fix and upload a new version onto npm?

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

The NPM version is working fine as far as I can tell. I had just mangled the Github one :(

from cordova-ionic-phonegap-branch-deep-linking-attribution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.