Delphi IOS開發環境安裝


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虛擬化。 

找到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

關機設置文件夾,或者把共享勾去掉,再勾上,關機,再開機(不是重啟),因為有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:

 在BIOS里面打開那個Visual Technology的東西 
 

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

12.MAC Xcode  賬號

Xcode>Preference>Account>Add Apple ID

delphi New FMX Project> Project>Options>PPF

 
13.申請開發證書
未付費的測試賬號,用Xcode申請一個7天證書。
付費的登錄網址 
https://developer.apple.com
,找到 Certificates, IDs & Profiles就可以申請了。沒有付費就沒有Certificates 菜單。只有下面的Document Forumns菜單。
 
14.查看上架結果
https://itunesconnect.apple.com
 
 
 
 
VMWare連不上iPhone真機5s,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周。又可以真機調試了。
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM