简体   繁体   English

Ios 构建错误 - 无法写入 Gemfile.lock - Expo React Native

[英]Ios Build error - Couldn't write Gemfile.lock - Expo React Native

I'm getting an error while trying build and pa or ios app我在尝试构建和 pa 或 ios 应用程序时遇到错误

This is what happens in the terminal I select Yes I have an apple id, but even if I say no I get this error这就是在终端中发生的事情我选择是我有一个苹果 ID,但即使我说不我也会收到这个错误

This happened after I fill type my email and password -这是在我填写电子邮件和密码后发生的 -

Authenticating to Apple Developer Portal...
There was an error while trying to write to Gemfile.lock. It is likely that 
you need to allow write permissions for the file at path: 
/usr/local/lib/node_modules/expo-cli/node_modules/@expo/traveling-fastlane-darwin/dist/lib/vendor/Gemfile.lock
Authenticated with Apple Developer Portal successfully!
Authentication with Apple Developer Portal failed!
You have no team associated with your Apple account, cannot proceed.
(Do you have a paid Apple Developer account?)
Error: You have no team associated with your Apple account, cannot proceed.
(Do you have a paid Apple Developer account?)
    at _chooseTeam (/usr/local/lib/node_modules/expo-cli/src/appleApi/authenticate.ts:147:11)
    at authenticate (/usr/local/lib/node_modules/expo-cli/src/appleApi/authenticate.ts:55:24)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at Context.ensureAppleCtx (/usr/local/lib/node_modules/expo-cli/src/credentials/context.ts:81:24)
    at IOSBuilder.bestEffortAppleCtx (/usr/local/lib/node_modules/expo-cli/src/commands/build/ios/IOSBuilder.ts:97:14)
    at IOSBuilder.prepareCredentials (/usr/local/lib/node_modules/expo-cli/src/commands/build/ios/IOSBuilder.ts:153:5)
    at IOSBuilder.run (/usr/local/lib/node_modules/expo-cli/src/commands/build/ios/IOSBuilder.ts:62:7)
    at IOSBuilder.command (/usr/local/lib/node_modules/expo-cli/src/commands/build/BaseBuilder.ts:39:7)
    at Command.<anonymous> (/usr/local/lib/node_modules/expo-cli/src/exp.ts:79:7)

I've searched but have not found a solution.我已经搜索过,但没有找到解决方案。

I would appreciate it if someone would give me a solution.如果有人能给我一个解决方案,我将不胜感激。

Do I need to submit to AppStore to view the app我是否需要提交到 AppStore 才能查看应用程序

Do I need an apple developer account to build I have an account.我需要一个苹果开发者帐户来建立我有一个帐户。

I was able to build for android without any questions regarding a play store account which I don't have.我能够为 android 构建而没有任何关于我没有的 Play 商店帐户的问题。

Why is it that ios need so much info.为什么ios需要这么多信息。

I would appreciate it if someone would give me a solution.如果有人能给我一个解决方案,我将不胜感激。

Thank You谢谢你

If you want to create app that can be submitted to the App Store you need to have paid apple account.如果您想创建可以提交到 App Store 的应用程序,您需要有付费的苹果帐户。 Only thing that you can do without that account is to:没有该帐户,您唯一可以做的就是:

  • create simulator build expo build:ios -t simulator创建模拟器 build expo build:ios -t simulator
  • eject and build debug version in xcode在 xcode 中弹出和构建调试版本

I was able to build for android without any questions regarding a play store account which I don't have.我能够为 android 构建而没有任何关于我没有的 Play 商店帐户的问题。

build:ios command generates release build that can be uploaded to App Store, to do that expo needs to generate Distribution Certificate, Provisioning Profile and Push Notification Key. build:ios命令生成可上传到 App Store 的发布版本,为此 expo 需要生成分发证书、配置文件和推送通知密钥。 To generate all of those credentials Apple account is required.要生成所有这些凭据,需要 Apple 帐户。 This is not expo limitation, this process is enforced by Apple.这不是世博会限制,此过程由 Apple 强制执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM