我想創建一個main.jsbundle並準備我的swift應用程序進行設備測試和應用商店發佈。 RN文檔通過objective-c說明了這一點,但不是很快。如何準備/捆綁一個swift +原生項目發佈
我試圖在appdelegate.swift
內做一個預先存在的swift代碼庫(本地主機工作正常),但似乎無法將jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
轉換成滿足編譯器的東西。
這是我已經試過: - let jsCodeLocation = NSBundle.mainBundle()(URLForResource: "main", withExtension: "jsbundle")
- 錯誤:
Cannot call value of non-function type 'NSBundle'
感謝@deanware那作品 – wantrapreneur
如果您發現我提供的信息有用,請在下面接受我的回答。 – dean