我会尝试"https://stackoverflow.com/questions/41970435“,但我不能得到.ipa文件。
谁能解释一下如何获取.ipa文件?
发布于 2017-02-09 15:45:27
.app文件:react-native run-ios --configuration=release
.app文件路径Build/Products/Release/"<Your_Filename>.app"..app转换为.ipa :- Create folder `Payload`.
- paste `.app` file into `Payload` folder.
- compress the `Payload` folder.
- change the name you want and put extension as `.ipa`.发布于 2018-09-25 20:49:44
应用传输安全设置包例外域
react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --
产品->方案->编辑方案->将构建配置更改为RELEASE
AppDelegate.m替换
jsCodeLocation = [RCTBundleURLProvider sharedSettings jsBundleURLForBundleRoot:@“索引”回退资源:nil];
使用
#ifdef调试Build
.app jsCodeLocation = [RCTBundleURLProvider sharedSettings jsBundleURLForBundleRoot:@“device
~/Library/Developer/Xcode/DerivedData//Build/Products/Release-iphoneos/
.ipa
.app文件粘贴到有效载荷文件夹中。
.app
发布于 2017-02-08 23:42:12
您可以在ios目录中运行这些命令。
xcodebuild clean archive -scheme <Scheme> -configuration Release -archivePath ../builds/<App>.xcarchive DEVELOPMENT_TEAM=<DevTeam> PROVISIONING_PROFILE=<PROVISIONING_PROFILE> CODE_SIGN_IDENTITY=<CODE_SIGN_IDENTITY>
xcodebuild -exportArchive -archivePath ../builds/<App>.xcarchive -exportPath ../builds/ -exportOptionsPlist ./iosExportOptions.plist 而iosExportOptions.plist可以是这样的
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>{TEAM_ID}</string>
</dict>
</plist>需要注意的是,如果您使用的是cocoapods,那么您需要使用工作区而不是项目进行构建。将此标志添加到第一个命令将确保您的目标是工作区-workspace <AppName>.xcworkspace。
你也可以检出fastlane。https://fastlane.tools/
或
您可以在Xcode和产品->存档https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html中填写所有详细信息,如DEVELOPMENT_TEAM等
https://stackoverflow.com/questions/42110496
复制相似问题