自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

PhoneGap官網(wǎng)翻譯 iOS開發(fā)常見問題文檔

移動開發(fā)
本文翻譯自PhoneGap官方網(wǎng)站常見問題解答,PhoneGap官方網(wǎng)站對iOS開發(fā)的常見問題進(jìn)行了充分的解答,如果您英文不好可以參看本文。

Q. When I run the Installer, the installation fails?

A. Follow the instructions here

問題:當(dāng)我運(yùn)行安裝程序時(shí),為什么安裝失敗?

答案:請參照指示做。

Q. Can I do AJAX with servers that have self-signed certificates?

A. No, this is a iOS SDK limitation with UIWebview. You’ll have to write an Objective-C plugin.

問題:我能在需要簽名證書的服務(wù)器上用Ajax嗎?

答案:不行,這是 iOS SDK與UI Webview之間的一種局限,你必須編寫一個Ojbective-C插件。

Q. With iOS 4 SDK, I get “Base SDK Missing” error?

A. See “Upgrade Your Xcode Template for iOS 4”

問題:使用iOS 4 SDK時(shí),出現(xiàn)了“未找到Base SDK”錯誤?

答案:請參考“為iOS 4 升級你的Xcode模版”。

Q. I installed Xcode 4, but I don’t see the PhoneGap template when creating a New Project? Where is it?

A. Xcode 4 Templates are included as of PhoneGap version 0.9.5.1 - download here.

問題:我安裝了Xcode 4,但是當(dāng)我新建一個新的項(xiàng)目時(shí)不能看見PhoneGap模版,模版在哪里?

答案:Xcode 4模版 包含在PhoneGap 0.9.5.1版里,點(diǎn)擊這里下載。

Q. PhoneGapLib.xcodeproj is red in my PhoneGap-based application and I get build errors?

A. The Xcode variable for PhoneGapLib is not set. Xcode must be closed when the installer is running. Either run the installer again, or add a PHONEGAPLIB variable in Xcode Preferences –> Source Trees, with the location of PhoneGapLib. The installer would have installed it in ~/Documents/PhoneGapLib.

問題:在我的PhoneGap-base應(yīng)用程序中PhoneGapLib.xcodeproj是紅色的,我生成的時(shí)候出現(xiàn)錯誤?

答案:PhoneGapLi中Xcode的變量未設(shè)置。當(dāng)運(yùn)行安裝程序時(shí),Xcode必須關(guān)閉。要么再次運(yùn)行安裝程序,要么在位于PhoneGapLib中的Xcode Preferencess –> Source Trees里添加一個PHONEGAPLIB 變量,安裝程序?qū)惭b到~/Documents/PhoneGapLib。

Q. What is this warning I get when I am packaging the installer? “Warning: “Require Admin Authorization” is recommended but not enabled. Installation may fail.”

A. You can safely ignore this warning, it will not affect installation. The installer only installs for the current user, thus it does not need Admin privileges.

問題:當(dāng)我對安裝程序運(yùn)行打包的時(shí)候,會得到一個警告?警告:建議“要求管理員授權(quán)”,如果沒有啟動,安裝可能失敗?

答案:你可以放心的忽略這個警告,它將不會影響安裝。安裝程序只會為當(dāng)前用戶安裝,因此它并不需要管理員權(quán)限。

Q. I get this “Invalid architecture” error. How do I fix it?

A. The Active SDK for the project is set to “Use Base SDK”, change it to one of the iPhone targets in the drop-down. Unfortunately this is a user-specific project setting and cannot be set in the Xcode template.

問題:我遇到了“無效的架構(gòu)”錯誤,應(yīng)該怎樣解決?

答案:項(xiàng)目的Active SDK設(shè)置為“Use Base SDK”,在下拉列表中將它改成一個iPhone的 targets。不幸的是,這是一個特定用戶的項(xiàng)目設(shè)置,不能在Xcode模版里面設(shè)置。

Q. I get this “_kUTTypeImage” link error. How do I fix it?

A. This relates to framework added for the new UIImagePickerController delegate. Add “MobileCoreServices.framework” to your project. This only relates to pre-existing projects that have updated their PhoneGapLib. New projects should not see this error.

問題:我遇到了一個“_kUTTypeImage”連接錯誤,應(yīng)該怎樣解決?

答案:這個與為新的UIImagePickerController代理添加框架有關(guān)。在你的項(xiàng)目里添加“MobileCoreServices.framework”。這個僅僅只于以前存在的修改過PhoneGapLib的項(xiàng)目有關(guān)。新的項(xiàng)目是不會看到這個錯誤的。

Q. I have Framework errors in red when creating a PhoneGap project in Xcode 3.2.x for iOS 4.x? How do I fix it?

A. Change your Base SDK. Go to the Project Menu –> Edit Project Settings –> General Tab –> Base SDK for all Configurations. Change it to “Latest iOS”

問題:當(dāng)我為iOS 4.x創(chuàng)建一個PhoneGap項(xiàng)目時(shí),遇到了一個用紅色標(biāo)識的框架錯誤,應(yīng)該怎樣解決?

答案:修改Base SDK。進(jìn)入Project Menu –> Edit Project Settings –> General Tab –> Base SDK for all Configurations,修改為“Latest iOS”。

Q. I still have some “Invalid Architecture” errors. Yes, I’ve looked at the items above. How do I fix this?

A. The Base SDK for your project and PhoneGapLib must be exactly the same. Launch PhoneGapLib.xcodeproj (double-click on it in your project), and set its Base SDK to the same one in your project.

問題:我仍然遇到一些“無效的架構(gòu)”的錯誤。是的,我已經(jīng)看了上面的內(nèi)容。我該如何解決這個問題?

答案:你的項(xiàng)目和PhoneGapLib中的Base SDK必須完全相同。啟動PhoneGapLib.xcodeproj (在你的項(xiàng)目中雙擊它),然后將它的Base SDK設(shè)置成你的項(xiàng)目中的Base SDK。

Q. I’ve tried almost everything and Xcode fails to compile PhoneGapDelegate.m in PhoneGapLib.

A. Check whether there is a space in the path to PhoneGapLib, particularly if there’s a space in your home folder name. Unfortunately at this time you either have to change your home folder name (since PhoneGapLib is installed under it, in your Documents folder) or relocate PhoneGapLib to a location that has no space in the path (and make sure you update the PHONEGAPLIB Xcode variable in Xcode Preferences –> Source Trees). This has been fixed in the latest codebase as of Mar 7th 2011.

問題:我已經(jīng)試過所有的方法,還是在編輯PhoneGapLib中的PhoneGapDelegate.m出現(xiàn)了錯誤。

答案:檢查一下PhoneGapLib所在的路徑是否有空間,特別是在你的主文件夾名是否有空間。不幸的是,在這個時(shí)候,你要么改變你的主文件夾名(在你的Documents文件夾下,PhoneGapLib安裝在里面),要么將PhoneGapLib移到在你的路徑里面沒有空間的地方(確定在Xcode Preferences –> Source Trees下,更新PHONEGAPLIB Xcode 變量的值)。在2011年3月7日***的代碼庫中已被修改。

責(zé)任編輯:佚名 來源: phonegapcn
相關(guān)推薦

2011-10-11 09:50:44

PhoneGap常見問題

2011-09-13 13:47:56

PhoneGap AP

2011-09-13 14:40:16

PhoneGap AP

2011-09-13 16:08:58

PhoneGap AP

2011-09-13 10:17:26

PhoneGap AP

2011-09-13 11:06:08

PhoneGap AP

2011-09-13 10:40:25

PhoneGap AP

2011-09-13 14:07:45

PhoneGap AP

2015-05-15 09:37:24

iOS開發(fā)爭議

2020-10-18 12:00:27

前端開發(fā)架構(gòu)

2012-03-06 08:47:40

Corona

2011-09-13 15:51:11

PhoneGap AP

2011-09-13 16:24:11

PhoneGap AP

2009-12-29 13:46:02

寬帶城域網(wǎng)接入

2024-07-01 08:23:20

2010-08-06 09:30:03

思科IOS升級

2021-05-17 07:08:28

大數(shù)據(jù)采集MySQL

2013-11-14 15:47:29

SDN問題答疑

2011-04-01 13:55:24

Java

2011-05-06 15:39:55

硒鼓
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號