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
234 stars 144 forks source link

"module 'AdServices' not found" on build_ios Fastlane #690

Closed felipeclopes closed 3 years ago

felipeclopes commented 3 years ago
Ionic:

   Ionic CLI                     : 6.11.0 (/Users/felipeclopes/.nvm/versions/node/v12.13.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.6.6
   @angular-devkit/build-angular : 0.1102.12
   @angular-devkit/schematics    : 11.2.12
   @angular/cli                  : 11.2.12
   @ionic/angular-toolkit        : 3.1.1

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : ios broken
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 15 other plugins)

Utility:

   cordova-res (update available: 0.15.3) : 0.15.1
   native-run (update available: 1.3.0)   : 1.0.0

Packages:
   "branch-cordova-sdk": "^4.2.4",
   "@ionic-native/branch-io": "^5.33.0",

When I'm trying to build the workspace with Fastlane, it is not being able to find the module AdServices.

Compiling BNCTuneUtility.m
▸ Compiling BNCThreads.m
▸ Compiling BNCTelephony.m
▸ Compiling BNCSystemObserver.m

❌  /Users/distiller/project/Pods/Branch/Branch-SDK/BNCSystemObserver.m:24:9: module 'AdServices' not found

@import AdServices;
 ~~~~~~~^~~~~~~~~~

▸ Compiling BNCSpotlightService.m
    The iOS deployment target 'IP
HONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleSymbolUtilities' from project 'Pods')
    The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleUtilitiesLegacy' from project 'Pods')
    The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleSignIn' from project 'Pods')
    The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleAnalytics' from project 'Pods')
    The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'AppAuth' from project 'Pods')
** ARCHIVE FAILED **

There shouldn't e any difference between xcode build and fast lane.

The complete log is here: https://pastebin.com/1BhqwHD7

echo-branch commented 3 years ago

Are you using the latest version of Xcode? AdServices was added in Xcode 12.3 and is now required for Branch. Another possibility is that fastlane doesn't pick up that AdServices is needed while Xcode automatically does. Could try adding it as a dependency.

felipeclopes commented 3 years ago

Thank you @echo-branch, it worked!

I updated the Xcode to 12.3+