adhoc build of project (usually appstore) results in much smaller IPA file

When I do an appstore build of my app expo build:ios I get a 204MB API file artifact that I can use to upload to the app store, and as far as I am aware everything works fine (still awaiting app store approval).

I built an adhoc profile through apple developers so that I can build an API file for Saucelabs and I tried to run a build with it expo build:ios --provisioning-profile-path <path_to_adhoc_profile>.mobileprovision --release-channel=staging. Everything appeared to succeed but that results in a 38MB API file that just displays a white screen after the splash screen. I assume things have gone mysteriously wrong, since the docs say that I should get a larger file not a smaller one.

I’m not sure how to troubleshoot since the build process says everything went smoothly. Any suggestions?

Thanks!

expo diag

Expo CLI 4.3.0 environment info:
System:
OS: macOS 11.2.3
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.3.0 - /usr/local/bin/node
Yarn: 1.22.5 - /usr/local/bin/yarn
npm: 7.0.14 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
IDEs:
Xcode: 12.3/12C33 - /usr/bin/xcodebuild
npmPackages:
@expo/webpack-config: ^0.12.16 => 0.12.42
expo: ^39.0.0 => 39.0.3
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2
react-native-web: ~0.13.7 => 0.13.18
npmGlobalPackages:
expo-cli: 4.3.0
Expo Workflow: managed

I have noticed this difference in plist generation in the “building and signing IPA” segment of the build logs:

prod log:

-----------------------------------------------+
Mon, 15 Mar 2021 13:49:09 GMT
WARN [2021-03-15 06:49:09.40]: Generated plist file with the following values:
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸ -----------------------------------------
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸ {
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸   "method": "app-store",
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸   "teamID": "<hidden for security>",
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸   "provisioningProfiles": {
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸     "<hidden for security>"
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸   },
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸   "signingStyle": "manual"
Mon, 15 Mar 2021 13:49:09 GMT
INFO [2021-03-15 06:49:09.40]: ▸ }

when building with adhoc profile override:

Wed, 17 Mar 2021 16:16:33 GMT
WARN [2021-03-17 09:16:33.20]: Generated plist file with the following values:
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸ -----------------------------------------
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸ {
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   "method": "ad-hoc",
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   "teamID": "<same as production logs>",
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   "provisioningProfiles": {
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸     "<same as production logs>"
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   },
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   "uploadBitcode": false,          <----- new
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   "compileBitcode": false,         <----- new
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   "uploadSymbols": false,         <----- new
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸   "signingStyle": "manual"
Wed, 17 Mar 2021 16:16:33 GMT
INFO [2021-03-17 09:16:33.20]: ▸ }

Is this what’s causing the massive discrepancy bundle size? Any insights on how I can get those settings switched to true in the adhoc build? @expo

I have the same problem. My ios build is absolutely massive. About 220 MB. Any way to reduce this!!???

that’s not the size of your app, that’s the size of your app for many architectures at the same time. this is what bitcode does. Apple Developer Documentation

My problem is actually not the same as Ianman2000’s. My production build is 204MB and works like it’s supposed to, but when I try to build that same project with an adhoc profile override, I get a 38 MB file that doesn’t work. The splash screen looks like it is for ants, and then I just get a white screen after.

Also of note, my app bundle from expo is 204MB, but the ipad download it corresponds to is 54MB, so that my adhoc build is 38MB (when it should be larger) is indicative to me of an issue.

but I get no errors.

NVM I got it to load on my ipad and it works fine… Not sure what’s going on with saucelabs now but I’ma assume it’s their problem

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.