我有简单的 React 本机应用程序。这些是我的 React 本机配置:
System:
OS: macOS 13.3.1
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 7.20 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 9.5.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
Watchman: 2023.03.06.00 - /usr/local/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK:
API Levels: 29, 30, 31, 33
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0
System Images: android-29 | Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7784292
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.7 => 0.71.7
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
我目前正在练习如何将 React Native 应用程序上传到 Apple Store。这是我第一次在 Apple Store 发布应用程序,我正在使用 Fastlane 上传它。根据,应用程序已成功上传。但是,当我检查时,我找不到任何构建版本,我不确定我做错了什么。
这是我的快速文件:
default_platform(:ios)
platform :ios do
desc "Release the App"
lane :release_app do
export_app
upload_app
end
desc "To export our app"
lane :export_app do
build_app(
workspace: "happydog.xcworkspace",
configuration: "Release",
scheme: "happydog",
silent: true,
clean: true,
output_name: "ReleaseApp.ipa",
export_xcargs: "-allowProvisioningUpdates",
)
end
desc "Deliver our app"
lane :upload_app do
deliver(
ipa: "ReleaseApp.ipa",
skip_metadata: true,
skip_screenshots: true,
skip_binary_upload: true
)
end
end