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

Adding a Internal distribution profile using eas device:create doesn't work in iOS 17 #2074

Closed
raphaelm-gioa opened this issue Oct 1, 2023 · 18 comments
Labels

Comments

@raphaelm-gioa
Copy link

Summary

After having successfully built my local preview build using "eas build --local" In preview mode
I am left with the .ipa that I dragged to my iPhone using Xcode after having installed the provisioning profile.
Had I thought it had successfully been installed, I realised that the 'eas device:create' process never worked and that my provisioning profile never installed
After inspecting the logs of my iPhone 14 Pro Max; I found this error

Failed to parse profile data. Error: NSError:
Desc   : Profil non valide
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code   : 1000
Type   : MCFatalError

And another one

Failure occurred while retrieving profile during OTA Profile Enrollment: NSError:
Desc   : Profil non valide
US Desc: Invalid Profile
Domain : MCProfileErrorDomain
Code   : 1000
Type   : MCFatalError
Extra info:
{
    MCPermanentlyRedirectedURLString = "https://expo.dev/register-device/XXXXX?udid=XXXXX";
}

which leads to a never-ending loop of me pressing on "Install profile" and being redirected in Safari to the Expo page, but really nothing installed

What platform(s) does this occur on?

iOS

SDK Version

^49.0.0

Environment

expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.5.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.1 - /usr/local/bin/npm
Watchman: 2022.08.08.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 15.0/15A240d - /usr/bin/xcodebuild
npmPackages:
expo: ^49.0.0 => 49.0.10
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.72.5 => 0.72.5
react-native-web: ~0.19.6 => 0.19.8
npmGlobalPackages:
eas-cli: 3.12.1
Expo Workflow: bare

Minimal reproducible example

Try to add a device to an internal build using eas device:create; in iOS 17.0.2, the process doesn't go through.

@byCedric byCedric transferred this issue from expo/expo Oct 2, 2023
Copy link

github-actions bot commented Nov 2, 2023

This issue is stale because it has been open for 30 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

@github-actions github-actions bot added the stale label Nov 2, 2023
@relasine
Copy link

relasine commented Nov 8, 2023

I am seeing something quite similar. I've been working with folks in getting their phone UUIDs in our provisioning profile for staging builds, and we've run into an issue with them. Specifically that they're having trouble with installing the profile. They see the profile available for installation within device Settings, opt to install without a problem. However, when they return back to the settings screen, it appears that the profile is still available to be installed.

We found a similar issue in the Apple developer forums (back in iOS 13), but no solutions. Never had this issue before.

Both on iOS 17. One on iPhone 13 Pro, other on iPhone 15 Pro.
Both of their UUIDs are appearing in our list of devices that can be added to the provisioning profile.

@github-actions github-actions bot removed the stale label Nov 9, 2023
@Lewitje
Copy link

Lewitje commented Nov 9, 2023

Having the same issue here:
iOS 17.1.1
iPhone 15 Pro Max
Install profile screen pops up but doesn't complete install it redirects to expo saying device is ready for development but the profile stays at 'downloaded'

@Lewitje
Copy link

Lewitje commented Nov 9, 2023

trim.59C70D82-8119-4D03-8D59-0553F2A0E34D.MOV

@szdziedzic
Copy link
Member

Hi,

It looks like a bug. I created an internal task to investigate it.

@bogdan2510
Copy link

Having the exact same issue. @szdziedzic any news related to this?

@szdziedzic
Copy link
Member

I'm investigating it, trying to find the root cause

@szdziedzic
Copy link
Member

Hi there, I tested that even though installation in iPhone UI doesn't look like it finished I was able to add the device successfully to EAS devices and it's available on my devices list in the eas device:list command output. I also tested that I can create an internal distribution build and install it on the device successfully.

So functionality-wise it's working, but the UI feedback isn't great. We will try to do something about it, but meanwhile, you should be able to successfully use these devices for internal distribution builds.

@carakessler
Copy link

My devie is listed on the eas device:list and I am having the same issue with adding the profile. However, when I install an internal distribution build, it doesn't work and says that the app cant be verified @szdziedzic

@pyrsmk
Copy link

pyrsmk commented Jan 10, 2024

Same here, device is listed, but we cannot install the app.

@eriktoor
Copy link

Same thing happened to me. I thought that I hadn't installed the cert because of the UI experience, but after marking myself as a receiver of the internal distribution build in EAS I was able to download the build.

@gajojr
Copy link

gajojr commented Feb 18, 2024

@eriktoor How did you mark yourself as a receiver of the internal distribution build?

Copy link

This issue is stale because it has been open for 30 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

@github-actions github-actions bot added the stale label Mar 20, 2024
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

@Chirema
Copy link

Chirema commented Apr 3, 2024

So what I did to fix this:

  • deleted all devices using eas device:delete
  • deleted all profiles in https://developer.apple.com/account/resources/profiles/list
  • ensured right devices (by UUID) are re-enabled in https://developer.apple.com/account/resources/devices/list
  • identified the UUID of the device by using eas device:create website option (profile does not install, but you get a pop-up with the UUID)
  • added manually devices with eas device:create using the input option, using the UUID in the eas device:create website option which does not work
  • built with eas build --profile development --platform ios, re-created profile in command line
  • downloaded and opened app successfully

EAS is amazing, but this is a bug which renders the ecosystem sadly useless to people who cannot fix this issue. Hopefully this issue is fixed soon! Maybe my workaround helps some people.

@oleg1994
Copy link

oleg1994 commented May 7, 2024

having the same issue, is there anyway to make it work ?

@erwannbst
Copy link

Same issue please reopen

@EricZeiberg
Copy link

Having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests