Comments (5)
+1 for breaking our iOS builds.
@scottholdren do you mind clarifying where you added this? I tried adding at the bottom of /ios/App/Podfile by got an error when running ionic cap sync
:
[!] CocoaPods could not find compatible versions for pod "Branch":
In Podfile:
Branch (= 1.38.0)
Edit: I did the following below and unfortunately still got the build error ld: framework not found AdServices
- Added
pod 'Branch', '1.38.0'
in thetarget 'App' do
section of/ios/App/Podfile
- Went to /ios/App in terminal and ran
pod install --repo-update
from capacitor-branch-deep-links.
I am appending it to /ios/App/Podfile, followed by some stuff to fix bitcode errors.
I am running
pod repo update
ionic capacitor add ios
cat build_resources/Podfile.extras >> ios/App/Podfile
in that order every time.
build_resources/Podfile.extras
pod 'Branch', '1.38.0'
def disable_bitcode_for_target(target)
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
remove_cflags_matching(config.build_settings, ['-fembed-bitcode', '-fembed-bitcode-marker'])
end
end
def remove_cflags_matching(build_settings, cflags)
existing_cflags = build_settings['OTHER_CFLAGS']
removed_cflags = []
if !existing_cflags.nil?
cflags.each do |cflag|
existing_cflags.delete_if { |existing_cflag| existing_cflag == cflag && removed_cflags << cflag }
end
end
if removed_cflags.length > 0
build_settings['OTHER_CFLAGS'] = existing_cflags
end
end
post_install do |installer|
project_name = Dir.glob("*.xcodeproj").first
project = Xcodeproj::Project.open(project_name)
project.targets.each do |target|
disable_bitcode_for_target(target)
end
project.save
installer.pods_project.targets.each do |target|
disable_bitcode_for_target(target)
end
installer.pods_project.save
end
from capacitor-branch-deep-links.
I am appending it to /ios/App/Podfile, followed by some stuff to fix bitcode errors.
I am running
pod repo update
ionic capacitor add ios
cat build_resources/Podfile.extras >> ios/App/Podfile
in that order every time.
build_resources/Podfile.extras
pod 'Branch', '1.38.0' def disable_bitcode_for_target(target) target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' remove_cflags_matching(config.build_settings, ['-fembed-bitcode', '-fembed-bitcode-marker']) end end def remove_cflags_matching(build_settings, cflags) existing_cflags = build_settings['OTHER_CFLAGS'] removed_cflags = [] if !existing_cflags.nil? cflags.each do |cflag| existing_cflags.delete_if { |existing_cflag| existing_cflag == cflag && removed_cflags << cflag } end end if removed_cflags.length > 0 build_settings['OTHER_CFLAGS'] = existing_cflags end end post_install do |installer| project_name = Dir.glob("*.xcodeproj").first project = Xcodeproj::Project.open(project_name) project.targets.each do |target| disable_bitcode_for_target(target) end project.save installer.pods_project.targets.each do |target| disable_bitcode_for_target(target) end installer.pods_project.save end
Thank you, I'll give this a shot!
from capacitor-branch-deep-links.
Having the same issue still.
from capacitor-branch-deep-links.
same issue. has anyone got this working with pod 'Branch', '1.39.4'
?
from capacitor-branch-deep-links.
Related Issues (20)
- Provided for backwards compatibility for Capacitor v2 plugins. Capacitor v3 plugins should import the plugin directly. This "Plugins" export is deprecated in v3, and will be removed in v4. HOT 1
- Plugin incompatible with Gradle 8 HOT 10
- Problems with play-services-ads version HOT 7
- Can't generate deep link Error: BranchDeepLinks does not have web implementation HOT 1
- iOS Status 200 error (null) HOT 3
- getLatestReferringParams HOT 2
- Capacitor BranchDeepLinks.addListener is not working as a listener HOT 4
- Deep Linking Fails with Empty Referring Parameters HOT 6
- Type 'Branch' has no member 'setDMAParamsForEEA' HOT 9
- no setup docs for old versions
- iOS Network Request Invalid HOT 3
- Android Fatal Error - "You need to use a Theme.AppCompat theme" HOT 1
- Add support for custom deeplink image HOT 11
- Plugin crashes on ios 12 HOT 2
- Capacitor 4 support HOT 8
- 'scanInt32(representation:)' is only available in iOS 13.0 or newer HOT 5
- upgraded project to capacitor 4, ionic/xcode project will not compile HOT 2
- IOS Build not passing with version 5.0.0 of the plugin HOT 3
- Please update documentation HOT 3
- Make compatible with Capacitor 5 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-branch-deep-links.