Skip to content
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

[BUG] iOS/Android - EAS Build Fails to generate a provisioning profile for the extension #154

Open
AlexPetrakis opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AlexPetrakis
Copy link

📋 Describe the bug

EAS Build fails to generate a provisioning profile for the iOS Share Extension automatically.
When running eas build --local --platform ios --profile production, the build fails with a missing provisioning profile for the Share Extension.
EAS only recognizes and handles credentials for the main app , but not for the Share Extension. Should this happen automatically or am I missing some config setup?
Ive created a new project to test it and experience the same issue.

Have also tried defining the extension in app.json using extra.eas.build.experimental.ios.appExtensions config.

I am able to run the app / extension fine in the simulator and it works great.

🛠️ To Reproduce
After running eas build - the first error I receive is this:

[RUN_FASTLANE] [!] Error building the application - see the log above
[RUN_FASTLANE] Error: The "Run fastlane" step failed because of an error in the Xcode build process. We automatically detected following errors in your Xcode build logs:
- No profiles for 'x.share-extension' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'x.share-extension'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'ShareExtension' from project 'exposhare')

[RUN_FASTLANE] [!] Error building the application - see the log above
[RUN_FASTLANE] Error: Starting from Xcode 14, resource bundles are signed by default, which requires setting the development team for each resource bundle target.
To resolve this issue, downgrade to an older Xcode version using the "image" field in eas.json, or turn off signing resource bundles in your Podfile: https://expo.fyi/r/disable-bundle-resource-signing

I can get around this by selecting a team within Xcode for both the app and the share extension.

But then, I run into this error:

[RUN_FASTLANE] [!] Error building the application - see the log above
[RUN_FASTLANE] Error: The "Run fastlane" step failed because of an error in the Xcode build process. We automatically detected the following errors in your Xcode build logs:
- No profiles for 'ex.share-extension' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'ex.share-extension'.

⚙️ Environment Details
app.json

{
  "expo": {
    "name": "expo-share",
    "slug": "expo-share",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "scheme": "expo-share",
    "userInterfaceStyle": "automatic",
    "newArchEnabled": true,
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "x"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "package": "x"
    },
    "web": {
      "bundler": "metro",
      "output": "static",
      "favicon": "./assets/images/favicon.png"
    },
    "plugins": [
      "expo-router",
      [
        "expo-splash-screen",
        {
          "image": "./assets/images/splash-icon.png",
          "imageWidth": 200,
          "resizeMode": "contain",
          "backgroundColor": "#ffffff"
        }
      ],
  [
        "expo-share-intent",
        {
          "iosActivationRules": {
            "NSExtensionActivationSupportsWebURLWithMaxCount": 1,
            "NSExtensionActivationSupportsWebPageWithMaxCount": 1,
            "NSExtensionActivationSupportsImageWithMaxCount": 1,
            "NSExtensionActivationSupportsMovieWithMaxCount": 1
          },
          "androidIntentFilters": [
            "text/*",
            "image/*",
            "video/*"
          ]
        }
      ]
    ],
    "experiments": {
      "typedRoutes": true
    },
    "extra": {
      "router": {
        "origin": false
      },
      "eas": {
        "projectId": "x" 
      }
    },
    "owner": "x"
  }
}

eas.json

{
  "cli": {
    "version": ">= 14.5.0",
    "appVersionSource": "remote"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "autoIncrement": true
    }
  },
  "submit": {
    "production": {}
  }
}

Please complete the following information:

  • Expo SDK Version (e.g.: 51) : 52.0.28
  • Package version (e.g.: 3.1.1) : 3.2.0
  • Platform target : Android / iOS
  • Routing : expo-router
  • Using firebase : yes
  • Device : Works in simulator, fails on eas build.
  • Type: lexpo eas build

For build issue give the output of the following command npx react-native info

info Fetching system and libraries information...
System:
  OS: macOS 15.1
  CPU: (10) arm64 Apple M4
  Memory: 296.98 MB / 24.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.11.0
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 10.9.0
    path: /usr/local/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/lib/ruby/gems/3.3.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12700392
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 23.0.1
    path: /opt/homebrew/opt/openjdk/bin/javac
  Ruby:
    version: 3.3.6
    path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: latest
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.6
    wanted: 0.76.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
@AlexPetrakis AlexPetrakis added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant