yarn run ios --simulator='iPhone 11'
yarn run ios —device='iPhone Jeff’  真机启动

windows+空白 打开simulator

Pod install 只需要安装一次

yarn preios与 pod install类似

Wealth 完整app
 
Git checkout .   更新代码前先执行这句
git pull origin feature/wealth/develop
package.json 需要更新代码
需要把iPhone X更换成 iPhone 11

wealth全app的build步骤
find package.json, and update "@welab/wealth-sdk" to the latest version.
这一步可以不操作,随便改一个版本,后面可以选择最新的版本

execute the command: yarn ios:sim
这个是在package.json文件中,在文件中搜索ios:sim,然后更改需要启动的手机或者simulator
—device=‘iPhone Jeff’  或者是 —simulator=‘iPhone X'

"ios:sim": "ENVFILE=.env.sit react-native run-ios --scheme frontendsimulator --configuration SitDebug --device='iPhone Jeff'",
"ios:sim": "ENVFILE=.env.sit react-native run-ios --scheme frontendsimulator --configuration SitDebug --simulator='iPhone X'",

10. Build and install welab-rn-front-end into iOS simulator
       Precondition:
        1.  install yarn at mac  
            brew install yarn
       2. install xcode and Xcode Command Line Tools from mac app store, confirm that the version of MacOS, xcode, xcode command line tools are consistent with each other.
                for example:
           MacOS: 12.0.1
           XCODE: 13.1
           XCODE command-line tool: 13.1

3. install cocoapods
            MacOS version    > 11.3  
             sudo gem install -n /usr/local/bin cocoapods -v 1.11.2
     if use welab-rn-front-end project

clone welab main app project: welab-rn-front-end, and go to branch feature/wealth/develop.
pull the latest code
find package.json, and update "@welab/wealth-sdk" to the latest version.( you can also ignore this step, and you will need to select a version in final build step).
execute the command: yarn.   If there is error that fail to download dependency from third-party, like github, google, then connect to EPAM VPN and execute "yarn" again. If there is error that fail to download dependency from gitlab(welab repository), then disconnect EPAM VPN and execute "yarn" again. especially for "react-native-cert-pinner": "https://juejin.cn/post/6844903953675583496https://github.com/approov/react-native-cert-pinner.git" on package.json, need to remove the other dependecies to execute "yarn" command, and add them back after this pinner is downloaded.
execute the command: yarn preios. Also need to connect/disconnect to download dependencies. if  such error occurs, 
execute the command: yarn start. and need to keep this terminal alive.
execute the command: yarn ios:sim
     if use wealthsdk project

部署IOS APP到模拟器
需要执行以下步骤:
1. 下载代码,并且一定要在xcode中先build成功才能继续一下步骤
2. 更改package.json文件
3. 项目根目录下执行命令 yarn
4. 项目根目录下执行命令 yarn preios
5. 项目根目录下执行命令 yarn start,并且保持这个terminal窗口不动,另外打开terminal来执行接下来的命令
6. 项目根目录下执行命令 yarn run ios --simulator='iPhone 11'  #模拟器启动
6. 项目根目录下执行命令 yarn run ios --device='iPhone Jeff'   #真机启动
6. 项目根目录下执行命令 yarn ios:sim    #参考

clone https://gitlab.prod-ss.welabts.net/vb/wealth/wealthsdk.git and use branch develop
execute command: yarn
go to ios folder and execute command: pod install
back to wealthsdk path and execute command: yarn start, and need to keep this terminal alive.
edit username/password on {wealthsdk}/src/config/config.sit.ts
still in wealthsdk path and execute command: yarn run ios [--simulator='simulator name'].

NOTE: Recommend to use iOS 14.3. Appium WebDriverAgent seems not support iOS 15.0 simulator currently, and iOS 12.2 is too old to run react bundle.

common errors:
       1.  checking whether the C compiler works... no
            xcrun: error: SDK "iphoneos" cannot be located
            xcrun: error: SDK "iphoneos" cannot be located
            xcrun: error: SDK "iphoneos" cannot be located
            xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
            /Users/simoncigoj/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-ed471/missing: Unknown `--is-lightweight' option
            Try `/Users/simoncigoj/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-ed471/missing --help' for more information
           configure: WARNING: 'missing' script is too old or missing
          configure: error: in `/Users/simoncigoj/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-ed471':
          configure: error: C compiler cannot create executables
          See `config.log' for more details
         try command:
          sudo xcode-select --switch /Applications/Xcode.app

2.   [!] CocoaPods could not find compatible versions for pod "ADEUMReactNative":
            In Podfile:
           ADEUMReactNative (from `../node_modules/@appdynamics/react-native-agent`)
          Specs satisfying the `ADEUMReactNative (from `../node_modules/@appdynamics/react-native-agent`)` dependency were found, but they required a higher minimum deployment target.         
          welab-rn-front-end/ios  folder, open Podfile:
         platform :ios, '12.0'
         change platform:ios to meet your macOS version.

11. Account generation
Prerequisite: need to install NodeJS and yarn

Clone script from gitlab project: Virtual Bank-Wealth-Testing Account Generation Tool
Run `npm` or `yarn` to install dependencies.
Edit “input/input.csv”. Note: mobile, username and hkidNoCD must be unique, and dateofBirth format must be YYYY-MM-DD. And accounts amount should not be greater than 30.
Run `yarn gen` or `npm run gen` to generate accounts.
After above steps is done, the generated account can do IAO process. And after IAO precess is done, need to do the following steps to open investment feature.

Navigate to https://wealth-portal-sit.dev-wlab.net/
Login with credentials: ops1/ops1 or ops2/ops2
Navigate to “approval List”->”Maker”, find your account, and click “view” button.
Tick “Approve” and “Valid”, and select “Issue date”, and click “submit”.
Logout and login with another account, and navigate to “approval List”->”Checker”.
Find your account and click “view”.
Save T24 Customer ID. Need this ID to transfer money.
Click “Agree” and “Submit”.

将APP部署到IOS模拟器相关推荐

  1. iOS自动化之打包-xcodebuild命令行打包.app并安装到ios模拟器

    1.目的 做ios ui自动化测试过程中,想通过试验命令行自动打包到特定的ios模拟器,以便后期集成到shell脚本 2.思路 先了解下整个手动安装包的流程,开发用xcode写完代码,并编译就可以打出 ...

  2. 给iOS 模拟器“安装”app文件

    前言 刚刚接触iOS的时候,我就一直很好奇,模拟器上面能不能直接安装app呢?如果可以,我们就直接在模拟器上面聊QQ和微信了.直到昨天和朋友们聊到了这个话题,没有想到还真的可以给模拟器"安装 ...

  3. 捕获iOS模拟器视频以进行App预览

    本文翻译自:Capture iOS Simulator video for App Preview Okay, so we can now submit video previews of our a ...

  4. 用iOS模拟器安装App

    背景介绍: Mac机器A上面有工程P的源码,Mac机器B上没有源码,想在B的模拟器上运行应用P. 步骤: 1,在机器A上,build模拟器版本,得到模拟器下的app文件: /Users/work/Li ...

  5. IOS企业版app部署到自己服务器,不通过AppStore,在iOS设备上直接安装应用程序

    IOS企业版app部署到服务器上说明 正对ios升级得ios7 以后,plist文件必须放到 https得服务器上了,http不可以用了. 解决方式: 找一个第三方https外链的网盘(推荐:七牛云存 ...

  6. 有没有测试ipad的软件,4个用于测试iPhone iPad应用程序的iOS模拟器 | MOS86

    如果您正在寻找在Mac或PC上测试iOS应用的方法,则需要使用模拟器. 仿真器与仿真器的不同之处在于它们并非旨在复制硬件,而是对硬件的基础状态进行建模. 好的仿真器可以很好地对这些条件进行建模,以使仿 ...

  7. libGDX学习之路01(续):把libGDX项目部署到iOS

    前言 libGDX是一个非常强大的框架,我在写下libGDX入门那篇文章的时候,没能成功解决把libGDX项目部署到iOS设备上并运行,在我查了很多资料和反复实验中,我总结了一些经验,希望能帮到大家. ...

  8. Visual Studio找不到iOS模拟器

    Visual Studio找不到iOS模拟器 Visual Studio可以正常连接Mac系统,但是在测试时候,提示以下错误信息: Failed to start iOS Simulator in t ...

  9. Visual Studio Xamarin中找不到iOS模拟器

    Visual Studio Xamarin中找不到iOS模拟器 Visual Studio可以正常连接Mac系统,但是在测试时候,提示以下错误信息: Failed to start iOS Simul ...

最新文章

  1. Android OpenGL ES(十一)绘制一个20面体 .
  2. 通讯组基本管理任务一
  3. ZJU-java进阶笔记 第六周(抽象与接口)
  4. 基于Rails的blog: typo
  5. 电脑如何测网速_测网速小常识
  6. B00004 atoi函数
  7. python股票交易模型_利用python建立股票量化交易系统(一)——小市值选股票模型...
  8. python做生物信息学分析_Python从零开始第五章生物信息学①提取差异基因
  9. ESX VMware是什么
  10. Pytorch:训练中断再恢复时的注意事项
  11. java文件显示红色的时间图_java怎么达到:如果转正日期等于今天就显示在最前面背景红色...
  12. JAVA-多线程 三 {多线程状态}JAVA从基础开始 -- 3
  13. 哈希表--管理公司员工信息
  14. Unity报错:Assertion failed on expression: ‘IsMatrixValid(matrix)‘...的解决办法
  15. 火车站售票系统课程设计
  16. aspose-words,pdf
  17. Kafka创建Topic的两种方式
  18. Linux内网测试80端口带宽,Linux Centos测试服务器上行下行带宽,服务器带宽测速...
  19. 3D动作绑定_三维动画制作流程——商迪3D科普分享系列(二)
  20. 你的Java代码对JIT编译友好么?

热门文章

  1. 杭州java好找工作吗_【java】我是学java的应届毕业生,来杭州一个多星期了,还没找到工作,能指点...
  2. break语句和continue语句课后习题
  3. 在php中将5按位与运算,PHP 5.2和PHP 5.3中对大整数的按位运算(Bitwise operations on big integers in PHP 5.2 and PHP 5.3)...
  4. ANDROID_MARS学习笔记_S04_008_用Listview、自定义adapter显示返回的微博数据
  5. 值得一生珍藏的电影台词
  6. 2021章节练习基础(案例精选)1-10
  7. 民营企业IT项目管理之路
  8. clock moved backwards. Refusing to generate id for XX milliseconds.
  9. Python实现网络多人聊天室
  10. excel表格如何转变成PDF文件