簡體   English   中英

Ios 構建錯誤 - 無法寫入 Gemfile.lock - Expo React Native

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

我在嘗試構建和 pa 或 ios 應用程序時遇到錯誤

這就是在終端中發生的事情我選擇是我有一個蘋果 ID,但即使我說不我也會收到這個錯誤

這是在我填寫電子郵件和密碼后發生的 -

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)

我已經搜索過,但沒有找到解決方案。

如果有人能給我一個解決方案,我將不勝感激。

我是否需要提交到 AppStore 才能查看應用程序

我需要一個蘋果開發者帳戶來建立我有一個帳戶。

我能夠為 android 構建而沒有任何關於我沒有的 Play 商店帳戶的問題。

為什么ios需要這么多信息。

如果有人能給我一個解決方案,我將不勝感激。

謝謝你

如果您想創建可以提交到 App Store 的應用程序,您需要有付費的蘋果帳戶。 沒有該帳戶,您唯一可以做的就是:

  • 創建模擬器 build expo build:ios -t simulator
  • 在 xcode 中彈出和構建調試版本

我能夠為 android 構建而沒有任何關於我沒有的 Play 商店帳戶的問題。

build:ios命令生成可上傳到 App Store 的發布版本,為此 expo 需要生成分發證書、配置文件和推送通知密鑰。 要生成所有這些憑據,需要 Apple 帳戶。 這不是世博會限制,此過程由 Apple 強制執行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM