2015-12-10 40 views
1

我將watch extension改爲cordova項目在simulator中運行得非常好。但是,當我嘗試在apple watch運行的應用程序它顯示我鏈接錯誤enter image description here如何在cordova iPhone app中添加watch os 2擴展程序

即使我嘗試this watch pluginthis watch plugin 仍然沒有運氣

任何人都知道整個過程添加watch extensioncordova項目

+0

突出顯示關鍵字。 –

+0

我使用Xcode 7.1 watch os 2,iOS 9.1,Cordova 5.4.1,cordova-ios @ 3.9.2 – Rudra

回答

0

我解決了所有問題及其工作對我來說甚至爲其創建ipa,因此以下是步驟

  1. 當我添加的手錶OS目標,並嘗試存檔得到了鏈接錯誤(libCordova.a找不到或AVFoundation框架未找到),以解決從

構建設置去除一切 - >其他鏈接器標誌在手錶應用程序和手錶擴展目標中

警告! - 請勿觸摸的iOS(科爾多瓦)應用程序的其它鏈接器標記 enter image description here

  • 如果您嘗試再次存檔,將出現新的錯誤 cordova file not found 解決它添加此
  • $(OBJROOT)/ UninstalledProducts/$(PLATFORM_NAME)/包括在所有3個目標

    線在以下路徑

    生成設置 - >標題搜索路徑

    enter image description here

  • 然後我上版本串錯誤 enter image description here
  • 解決它通過給出相同的捆綁版本字符串,短&捆綁版本從info.plist到所有3個目標

    enter image description here

  • 地獄呀!現在所有的錯誤都消失了我可以創建ipa或者無情地運行它來配對蘋果手錶
  • 相關問題