2017-04-07 37 views
1

我嘗試實現推送通知:如何修復xcode中的Apple Mach-O Linker錯誤組問題?

Source

但我得到了這個問題:

enter image description here

Apple Mach-O Linker Error Group 
no such file or directory: 
'/Users/arunkumar/Library/Developer/Xcode/DerivedData/sample-bskvypzxnjnnszbjeelvenubespf/Build/Products/Debug-iphonesimulator/libRCTPushNotification-tvOS.a 

如何解決這個問題?

+0

關閉項目,開放的Xcode - >窗口 - >項目 - >找到你的項目 - >派生數據..............點擊刪除選項,打開你的項目並建立。 – raki

+0

這是行不通的@raki –

回答

2

運行react-native鏈接這將全部爲你。 或者使用這些步驟

步驟1

.xcodeproj文件裏面的文件夾中。這個文件在Xcode中的項目拖到(通常在上Xcode中櫃組)

步驟2

點擊您的主項目文件(表示.xcodeproj一)選擇Build階段並拖動從要導入到鏈接二進制與圖書館

步驟3

項目的檔案庫中的文件夾產品靜態庫,選擇構建設置並搜索標題搜索路徑。有對子目錄記得讓它遞歸,等反應,你應該包括路徑到您的庫(如果有相關的文件

指這一個 link

+0

現在我正在鏈接庫@Sport,但現在也出現同樣的錯誤 –

+0

嘗試手動使用,我給出的步驟只是嘗試 – Sport

+0

1.首先我將<.xcodeproj>文件從(/ node_modules/react-native/Libraries/PushNotificationIOS /)拖動到庫 –