世博会独立应用,为Facebook App Review生成iOS模拟器

时间:2018-08-02 11:42:44

标签: react-native ios-simulator expo detach

如何在“ EXBuildConstants.plist”中为developmentURL设置发布的URL,因为localhost URL在facebbok应用程序审核过程中不起作用?

我正在构建世博会独立应用程序,但是我需要为Facebook App审查生成模拟器构建。

每次“ EXBuildConstants.plist”都会自动更新,因此如果不运行Expo,我的模拟器构建将无法正常工作。

2 个答案:

答案 0 :(得分:2)

Expo forum上回答

更改xcode,转到onClickButton(button): void { if (this.selectedButton === button) { this.selectedButton = null; } else { this.selectedButton = button; } } ,然后将构建配置更改为Product-> Scheme->edit Scheme

enter image description here

答案 1 :(得分:1)

非弹出方法

如果您希望避免弹出Expo“托管”项目,则可以按照these directions进行操作,以生成Simulator版本(* .app)。

链接中的步骤如下:

  1. 通过运行expo build:ios -t simulator,使用模拟器标志构建您的expo项目。
  2. 在运行expo build:status时,使用完成时给出的链接下载tarball。
  3. 通过运行tar -xvzf your-app.tar.gz解压缩tar.gz。这将生成模拟器构建文件。

请注意,压缩文件的链接将是构建应用程序时登录到终端的最后一件事。

之后,您只需按照here的说明压缩zip版本:

压缩构建文件的步骤如下:

  1. 运行ditto -ck --sequesterRsrc --keepParent `ls -1 -d -t src/*.app | head -n 1` destination/build.zip,其中src/*.app是模拟器构建文件的路径,而destination/build.zip是目的地。