2017-07-27 68 views
0

我正在研究我的第一個應用程序,以瞭解如何添加Google廣告的工作原理(這只是一個基本的面向手電筒應用程序)當我創建捆綁ID時,出現此錯誤:error imageXcode堅持認爲在包標識符中有一個「無效字符」,似乎並不存在

我的包ID是「com.dadams.Front-facing-LCD-Flashlight」,我不相信它包含任何不允許的字符。

任何幫助,將不勝感激:)

+0

如有可能發佈錯誤消息的文本。 –

+0

對不起,所有的錯誤信息都是「無效的字符」,似乎並沒有完成它,我當前的包ID也是「com.dadams.FrontFacingLCDFlashlight」。希望有所幫助。 –

回答

0

我認爲,Xcode是將其中無效字符出現破折號。捆綁標識符中不允許使用空格,所以Xcode在空格處添加破折號。嘗試擺脫它們並清理項目。

0

您的包標識符是com.dadam.Front-facing LCD手電筒根據您發佈的圖像。試試沒有「 - 」的bundel標識符。您只能使用字母數字字符。

0

捆綁包標識符必須符合UTI。

從文檔:

The UTI Character Set

A uniform type identifier is a Unicode string that usually contains characters in the ASCII character set. However, only a subset of the ASCII characters are permitted. You may use the Roman alphabet in upper and lower case (A–Z, a–z), the digits 0 through 9, the dot (「.」), and the hyphen (「-」). This restriction is based on DNS name restrictions, set forth in RFC 1035.

+0

但是,我的包標識符遵循所有這些準則。其中沒有任何內容會違背UTI標準。我認爲Xcode認爲,在info.plist內部的捆綁ID後面有一堆空白區域,但我查了一下,沒有任何內容。 –

相關問題