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://docwiki.embarcadero.com/RADStudio/Berlin/en/Adding_an_Android_SDK
http://docwiki.embarcadero.com/RADStudio/Berlin/en/IOS_Mobile_Application_Development
参考
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
重装windows或者重装vmware,导致打不开mac虚拟机,mac虚拟机进度条卡着黑屏,很忙,重新解锁就好了。
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虚拟化。
找到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
关机设置文件夹,或者把共享勾去掉,再勾上,关机,再开机(不是重启),因为有bug,必须关机,再开机,桌面就能看到共享文件夹了。
https://jingyan.baidu.com/article/17bd8e521d56f185ab2bb8df.html
安装后就可以共享文件夹了。
mac high sera 安装的vmtools,在mac的偏好设置,安全里设置允许vm安装允许,否则看不到vm share folder
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
C:\Program Files (x86)\Embarcadero\Studio\19.0\PAServer\PAServer19.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.
run PAServer.
where is Shared Folders?
1.VM>Settings>options(not hardware)
2.Os X>Finder>Preferences>General>Connected servers checked>ok!
如果以前安装过paserver,仅仅是RAD版本升级,有2个办法,1是重新安装paserve,2是在rad里配置好connection profile,连接时提示自动拷贝新版本的 paserver过去,然后安装即可。省了拷贝的步骤。
Platform Assistant Server 10.2.1.10
Platform Assistant Server 10.0.1.23
Platform Assistant Server Version 9.0.2.03
如果安装目录下没有PAServer19.0.pkg
,在RADIDE的菜单里找到下载的地方
To open the wizard again, select Help > Help Wizards > Mobile Help Wizard.
在官方网站也可以下载
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Installing_the_Platform_Assistant_on_a_Mac
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!
https://developer.apple.com/download/
http://blog.csdn.net/annkie/article/details/48625519
http://jingyan.baidu.com/article/8065f87f806d5c23312498bf.html
xcode 8.2.1.xip 安装失败,
cpio read error:undefined error:0,是空间不足吧,
Block-compressed payload operation failed,压缩操作失败,解决方法:不要用VMware共享文件夹双击安装,拷贝的max系统后双击安装xcode就成功了。
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
在xcode里安装simulator太慢,有时候安装不成功,
参考自己用浏览器下载 https://www.jianshu.com/p/918741604a73
simulator9.3官网下载地址:
https://devimages-cdn.apple.com/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_3-9.3.1.1460411551.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.Delphi 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
TDBXError: Remote error: Authentication manager rejected user credentials. This may due to invalid combination of DS user name and password.
这个错误是因为mac系统的PAServer没有密码,第一次运行PAServer的时候,在提示输入密码的地方输入123再回车。密码不能为空。
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:
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.
12.MAC Xcode 账号
Xcode>Preference>Account>Add Apple ID
delphi New FMX Project> Project>Options>PPF
,找到Certificates, IDs & Profiles就可以申请了。没有付费就没有Certificates 菜单。只有下面的Document Forumns菜单。
![](https://images2015.cnblogs.com/blog/499439/201606/499439-20160607184856168-1097741433.png)