Trouble building enterprise apps with Expo managing the certificate

#1

Hey there -

I’m having some trouble building an Enterprise app. I run EXPO_DEBUG=true exp build:ios -c --apple-enterprise-account, and get to the point of having Expo handle the Distribution and Push certificate processes, and then I get the error You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com/support.

I see some past issues people have had that look similar, but they seem to have been resolved. Am I doing something wrong, and/or is something broken?

Other relevant info:
I am using exp v54.0.1
I am an admin on the Apple enterprise account
There are no existing certificates or provisioning profiles (this is a new account)

Thank you!

Past issues:




#2

Hello! Just to make sure, is it possible that you need to accept Apple’s new Terms&Conditions from the apple developer program?

#3

At first, I was getting a different error saying that I needed to do that, but after I accepted the terms and conditions I now get the You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com/support. error.

#4

Update: I think my issue may be because of the two week waiting period Apple enforces for new Enterprise accounts that I am subject to before creating an in-house distribution provisioning profile (see screenshot).

Also, if I create the certificate myself, it appears I may need to use a complex password (per Enterprise Build failed.).

Here’s another resource I came across for directions for creating the push notification certificate and mobileprovision file, if necessary: https://stackoverflow.com/a/48859187/2465599.

#5

Another update - I can now create In House Distribution provisioning profiles in the Apple dev portal after waiting 14 days. However, I still haven’t been able to successfully generate an .ipa with exp (v55.0.2).

Things I’ve tried:

  • --apple-enterprise-account flag
  • Letting expo manage the certificates and provisioning profile, and also creating them myself
  • Creating a significantly complex password for the .p12 files (some posts in the Expo forums suggest doing this)

When letting Expo manage the certs and profile, I quickly get an error:

You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com/support

(I am an admin on the account)

When I create them myself, there is a Fastlane error during the .ipa generation process “building and signing IPA” step:

[stderr] [11:45:45] 'ios:build-and-sign-ipa' errored after 1.48 min
[stderr] [11:45:45] Error: Process exited with non-zero code: 1
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/8s/t4vscjs14yd6p8736s7b3wyc0000gn/T/gym_config20180618-57614-12vmbsy.plist -archivePath /private/tmp/turtle/94583643-738e-43cf-9cb6-ba01db52d0d8/archive.xcarchive -exportPath /var/folders/8s/t4vscjs14yd6p8736s7b3wyc0000gn/T/gym_output20180618-57614-1qbhzh 'OTHER_CODE_SIGN_FLAGS=--keychain /private/tmp/xdl/8536ccc0-7327-11e8-baa1-dd9ecbf3962b.keychain'
[stderr]     at ChildProcess.child.on (/usr/local/turtle-agent/tools-public/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)
[stderr]     at emitTwo (events.js:125:13)
2018-06-18 11:44:25.957 xcodebuild[57643:1704837] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/8s/t4vscjs14yd6p8736s7b3wyc0000gn/T/ExpoKitApp_2018-06-18_11-44-25.953.xcdistributionlogs'.
[stderr]     at ChildProcess.emit (events.js:213:7)
[stderr]     at maybeClose (internal/child_process.js:927:16)
[stderr]     at Socket.stream.socket.on (internal/child_process.js:348:11)
[stderr]     at emitOne (events.js:115:13)
[stderr]     at Socket.emit (events.js:210:7)
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.95.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh: line 61: 57643 Segmentation fault: 11  xcodebuild "$@"
[stderr]     at Pipe._handle.close [as _onclose] (net.js:545:12)

If anyone has any suggestions, it would be much appreciated.

#6

Here is the stack trace for the error when trying to create a build and letting Expo handle all:

Error: Reason:Unexpected response, raw:{"responseId":"1bda4e74-a296-4758-976c-6c22160b4084","resultCode":1200,"resultString":"You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com/support","userString":"You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com/support","creationTimestamp":"2018-06-20T22:54:26Z","protocolVersion":"QH65B2","userLocale":"en_US","requestUrl":"https://developer.apple.com/services-account/QH65B2/account/ios/certificate/submitCertificateRequest.action","httpCode":200}
    at IOSBuilder._throwIfFailureWithReasonDump (/exp@55.0.4/src/commands/build/IOSBuilder.js:622:13)
    at IOSBuilder._callee7$ (/exp@55.0.4/src/commands/build/IOSBuilder.js:334:14)
    at tryCatch (/Users/donaldhruska/.nvm/versions/node/v9.3.0/lib/node_modules/exp/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/Users/donaldhruska/.nvm/versions/node/v9.3.0/lib/node_modules/exp/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (/Users/donaldhruska/.nvm/versions/node/v9.3.0/lib/node_modules/exp/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/Users/donaldhruska/.nvm/versions/node/v9.3.0/lib/node_modules/exp/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/donaldhruska/.nvm/versions/node/v9.3.0/lib/node_modules/exp/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
closed #7

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