You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command-line builds result in the above error. Please see the section below [Compiling: Capacitor](#compiling-capacitor) for the full list of up-to-date dependencies needed for CLI builds to work.
1366
1367
1368
+
* #### Compiling: Cordova 8
1369
+
1370
+
* ##### Version 4.1.x of this plugin works with Cordova 8, but you need to add some fields to your config.xml file:
1371
+
1372
+
* Cordova 8 does not correctly support CocoaPods, which the 4.x releases of this plugin utilize
1373
+
* This plugin can't include both versions of the pod spec, which changed between Cordova 8 and Cordova 9. We have chosen to include the Cordova 9 version.
1374
+
* In order to support Cordova 8's handling of CocoaPods, you must install an extra Cordova plugin to correctly incorporate our CocoaPod ("Branch" v.0.31.3 as of 2020.02.10)
1375
+
* Install the plugin [cordova-plugin-cocoapods-support](https://github.com/blakgeek/cordova-plugin-cocoapods-support)
1376
+
* That plugin does not add any code to your app, it is strictly a Cordova hook to create your Podfile before building your app.
1377
+
* Add the following lines to the `widget/platform[name="ios"]` path in config.xml:
* Replace `<YOUR MINIMUM VALUE>` with the minimum iOS version your app requires, e.g. "8" or "10.0" or "11.4"
1383
+
* Run `cordova prepare ios` again and ensure you see console output similar to
1384
+
```
1385
+
Searching for new pods
1386
+
Checking config.xml for pods.
1387
+
config.xml requires pod: Branch
1388
+
Installing pods
1389
+
Sit back and relax this could take a while.
1390
+
```
1391
+
* Provided that the dependencies listed in the next section are up to date (see [Compiling: Capacitor](#compiling-capacitor)), you should also be able to do `cordova build ios` without issue.
1392
+
1367
1393
* #### Compiling: Capacitor
1368
1394
1369
-
* ##### Version 4.0.1 of this plugin works with Ionic 4 + Cordova and Ionic 4 + Capacitor, with the following caveats:
1395
+
* ##### Version 4.1.0 of this plugin works with Ionic 4 + Cordova and Ionic 4 + Capacitor, with the following caveats:
1370
1396
1371
1397
* We strongly recommend Node >= 10.15. Node 8 might work, but it is not tested.
1372
-
* For BOTH Cordova and Capacitor, you must use Xcode >= 11.1, CocoaPods >= 1.8.4, Cordova >= 9.0.0, Ionic-CLI >= 5.1, cordova-ios >= 5.1.0
1398
+
* For BOTH Cordova and Capacitor, you must use Xcode >= 11.1, CocoaPods >= 1.8.4, Cordova >= 8.0.0, Ionic-CLI >= 5.1, cordova-ios >= 5.1.0
1373
1399
* Every single one of these dependencies has fixes that allow the command line build, and the pod dependency resolution to work correctly
1374
1400
* You MUST use @capacitor/ios >= 1.4.0. Versions prior to that version did not federate the OpenURL notifications to other plugins, including Branch.
1375
-
* `use_frameworks` has been removed from this plugin and will now be statically built. If the other podfile uses `use_frameworks` that is fine but this plugin no longer flags itself as dynamic.
1401
+
* `use_frameworks` has been removed from this plugin and will now be statically built. If the another podfile uses `use_frameworks` that is fine but this plugin no longer flags itself as dynamic. Ideally your app should be updated to remove `use_frameworks!` from your Podfile.
1376
1402
* When using Capacitor, you must add the following entries yourself to `ios/App/App/Info.plist`:
This is a limitation of Capacitor where explicit config changes are the developer's responsibility in order to avoid "magic config"
1402
1429
* When using Capacitor, you must add your Associated Domains entitlements via the Xcode entitlement editor yourself
1403
-
* This MUST be done using Xcode - this is part of Capacitor's philosophy whereby you are in control of every config file change
1430
+
* This MUST be done using Xcode -again this is part of Capacitor's core philosophy whereby you are in control of every config file change
1404
1431
* Open the "Signing & Entitlements" tab in Xcode, add the Associated Domains entitlement, and add the urls found on your Branch dashboard.
1405
1432
1406
1433
* #### AppStore: iOS
1407
1434
1408
1435
* #### App rejected because it uses push notification features but does not declare the aps-environment key
1409
-
When branch-cordova-sdk moved to use CocoaPods, a change was introduced in Cordova 9 where the separate entitlement files were no longer flattened together. This issue has been fixed in version 4.0.1ofthis plugin.
1436
+
When branch-cordova-sdk moved to use CocoaPods, a change was introduced in Cordova 9 where the separate entitlement files were no longer flattened together. This issue has been fixed in version 4.1.0 of this plugin by directly adding the Branch config to your existing entitlements rather than creating new entitlement files. This change is backward-compatible with Cordova 8.
0 commit comments