簡體   English   中英

CocoaPods與領域

[英]CocoaPods with Realm

我正在嘗試使用CocoaPods安裝Realm。 我以前做過,沒問題,但是現在出現錯誤。 下面我發布了我的Podfile代碼以及我在終端中返回的錯誤

Podfile

# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
Uncomment this line if you're using Swift
use_frameworks!


target 'Htlaeh' do

    pod 'RealmSwift'

end

target 'HtlaehTests' do

    'pod RealmSwift'

end

target 'HtlaehUITests' do

    pod 'RealmSwift'

end

錯誤

[!] Invalid `Podfile` file: syntax error, unexpected tCONSTANT, expecting end-of-input
target 'Htlaeh' do
              ^. Updating CocoaPods might fix the issue.

#  from /Users/Cody/Desktop/Htlaeh/Podfile:7
#  -------------------------------------------
#  
>  target 'Htlaeh' do
#  
#  -------------------------------------------

我想我可以看到CocoaPods不滿意的兩個潛在語法錯誤:

  1. Uncomment this line if you're using Swift (它是指它下方的行。))

  2. 在“ Tests目標中,它應該是pod 'RealmSwift' 撇號現在位於“ pod”的前面。

請嘗試更正這兩個語法問題,如果仍不能解決問題,請告訴我。 :)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM