http://www.cnblogs.com/cb168/p/4793913.html

RAD Delphi XE/10 Seattle 安装IOS、OSX环境安装,IOS模拟器,MAC X

真机可以调试

http://community.embarcadero.com/blogs/entry/rad-studio-trial-fully-testeable

http://www.embarcadero.com/starthere/seattle/mobdevsetup/ios/en/index.html

 

参考

http://www.bubuko.com/infodetail-790015.html

1、Win7 开发主机,RAD Settle 10 

    7G

2、虚拟机VMware11

    300M

 

3、install unlocker 206

     在win7系统里,unlocker 203、VMware Unlocker for OS X 2.0.3,使得VMware support Apple OS X

     11M

     在windows系统里解压unlocker206,运行win-install.cmd

4、VMware安装Mac系统

    OS X 10.7,MAC OS X 10.10.5

    7G,Yosemite Install(14F27).cdr

    New virue machine select file  ..

    https://developer.apple.com/osx/download/

    https://developer.apple.com/downloads/   

   VMware>Create a New Virtual Machine>Installerdiscimagefile(Yosemite Install(14F27).cdr)>

 

    1)安装虚拟机,可能会出现提示

     Mac OS X is not supported with binary translation. To run Mac OS X you need a host on which VMware Workstation supports Intel VT-x or AMD-V.

解决方法是 在BIOS里开启CPU虚拟化。 

找到Config中的CPU中[Core Multi-Processing]及[Intel(R) Hyper-Threading Technology] 这2项都改成=>[Enabled]

找到Security中的Virtualization中[Intel(R) Hyper-Threading Technology]这项改成=>[Enabled]

参考这里

http://jingyan.baidu.com/album/bad08e1e9a95ef09c8512192.html?picindex=3

 

2)此时启动虚拟机mac系统报错,vcpu-0:VERIFY vmcore/vmm/main/physMem_monitor.c:1123

find OS X folder 安装目录,打开VMX文件, 比如你的客户机名字为OSX, 这个文件就是OSX.vmx,

你将会看到有一个smc的参数:

smc.present = "TRUE"

把smc.version = 0 加载这个参数后面一行, 保存退出。重新启动客户机发现能正常启动了

 

 

   3)there is not enough free space on yosemite install(14F27) to install

    重启安装以后,选择磁盘,只有14F27,此时在虚拟机里的OS X 系统>Utilities>Disk Utility>Erase ok >close window> 此时新增一个了一个磁盘。选择安装就可以了。

 

安装 VMware tools

VMware>VM>VMware install tools是灰色的。安装以后就可以了。

5、VMware安装darwin6.0.3

    11M,darwin6.0.3.iso,鼠标流畅了。

    Graphics Tools for Xcode7, 45M

   在安装目录下也可以找到D:\Program Files (x86)\VMware\darwin.iso挂载安装。

D:\Program Files (x86)\VMware\darwin.iso

vmware>setting>hardware>dvd/cd>select darwin.iso

参考

http://jingyan.baidu.com/article/d5c4b52bc05c1fda560dc5da.html

安装后就可以共享文件夹了。

 

6.OS install PAServer ok! PAServer17.0.pkg

  http://docwiki.embarcadero.com/RADStudio/Seattle/en/Installing_PAServer

  D:\Program Files (x86)\Embarcadero\Studio\17.0\PAServer\PAServer17.0.pkg

  60M

on windows ,copy to VMshared folders.then open VMware,start os X ,find shared folders,double click  PAServer17.0.pkg file,setup finished.

 

where is Shared Folders?

1.VM>Settings>options(not hardware)

2.Os X>Finder>Preferences>General>Connected servers checked>ok!

7.OS install XCODE

    2.6G,V6.4

    https://developer.apple.com/downloads/    

    Xcode7,3.5G

   Xcode7.1 beta,4.3G,Xcode 7.1 beta requires a Mac running OS X 10.10.4 or later.

download xcode.dmg file>share file to vmware share folder>VMWare OS>VMWare shared folders>find xcode.dmg>double click xcode.dmg>move(drog) xcode to Applications.OK!

 

8.OS installl Command Line Tools

  158M,Command_Line_Tools_OS_X_10.10_for_Xcode_6.4.dmg

   https://developer.apple.com/downloads/

   http://adcdownload.apple.com/Developer_Tools/Command_Line_Tools_OS_X_10.10_for_Xcode_6.4/Command_Line_Tools_OS_X_10.10_for_Xcode_6.4.dmg

 

   Cmmand Line Tools OS X 10.10 for Xcode7,150M

  vmware>OS X> open>VMWare shared folders>commm...dmg,open,open,command..pkg,open.install,next,next ok!

9.XCODE>downloads>Components

   

Xcode 手动安装 iPhone simulator,

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

http://www.zuqan.com/archives/406

10.RAD IDE Adding a Mac OS X or iOS SDK

  http://docwiki.embarcadero.com/RADStudio/Seattle/en/Adding_a_Mac_OS_X_or_iOS_SDK   

  run osx PAServer.

  RAD IDE/Tools>Options>SDK Manager>add

  Adding a Mac OS X or iOS SDK

  IP is OS X10.10.5 system IP. in Mac os,view ip command:ifconfig

  port is default  64211,close firewall.

D:\Users\Administrator\Documents\Embarcadero\Studio\SDKs\iPhoneOS8.4.sdk\Applications
D:\Users\Administrator\Documents\Embarcadero\Studio\SDKs\iPhoneOS8.4.sdk\System
D:\Users\Administrator\Documents\Embarcadero\Studio\SDKs\iPhoneOS8.4.sdk\usr

 

11.import IOS sdk 

end

 

Target Platform选择

OS X MacOSX10.10.3 ,F9,在虚拟机上的mac系统看到app运行界面了。

 IOS Simulator -iPhoneSimulator 8.4在虚拟机上的mac系统看到app运行界面了。

 IOS 账号申请验证的时候提示 暂时无法处理您的请求

那是因为之前提供的姓名、地址不正确,需要按正确格式填写即可,不用绑定银行卡也可以成功,要留电话号码。

 

如何打开IOS simulator

Xcode>Open Developer Toos>iOS Simulator 

 

C:\Users\Administrator\Music\iTunes\iTunes Media\Mobile Applications\XXX 2.91.ipa

 

other problem

二进制转换不支持用于 Mac OS X。要运行 Mac OS X,您需要一台 VMware Workstation 支持 Intel VT-x 或 AMD-V 的主机

fix:

 在BIOS里面打开那个Visual Technology的东西 
 

12.import IOS sdk 

VMware os shared for other computer lnet,set 虚拟机的网络需要设置为桥接模式,也就是bridge模式.ok,os ip 和其他局域网的IP在一个段里,其他机器就可以访问了。

VMware>Open OS x tab>setting>Hardware>Network Adapter>Network connection>Bridged:Connected directly to the physical network.

 

 

reference 
http://www.2ccc.com/news/Html/?1487.html
http://docwiki.embarcadero.com/RADStudio/Seattle/en/IOS_Mobile_Application_Development
http://www.cnblogs.com/weii/p/4688299.html
 
13.申请开发证书
未付费的测试账号,用Xcode申请一个7天证书。
付费的登录网址 
https://developer.apple.com
,找到Certificates, IDs & Profiles就可以申请了。没有付费就没有Certificates 菜单。只有下面的Document Forumns菜单。
 
14.查看上架结果
https://itunesconnect.apple.com
 
 
 
 
VMWare连不上iPhone,ipad的原因是虚拟机的USB是3.0,设置为2.0就好了。
打开VMWare>选择OS x,VM>Setting>Hardware>USB controller>USB2.0,restart OS ok!
OS运行中无法设置USB 类型。 
http://www.cnblogs.com/sun51586/p/5434112.html
 
机箱前面的USB插口有问题,连接不上,等待无响应,转到后面的插口好了。
 
 
真机调试
e8008015,2016.5.18,测试开发者账号,证书期限是1周,到期后无法安装调试,用XCode里打开工程Fix一下,再看account的detail证书又有一个证书了,期限是1周。又可以真机调试了。