[Xcode]排除 ”this class is not key value coding-compliant for the key xxx.” 錯誤訊息

出現 “this class is not key value coding-compliant for the key xxx.”

表示IBOutlet或IBAction設定有錯誤
或是Target Membership沒有給予權限

IBOutlet或IBAction設定有錯誤

用放大鏡搜尋此元件

找到此錯誤元件

刪除此元件設定即可解決問題

Target Membership沒有給予權限

到swift檔案右邊側欄中點擊第一個圖示

分頁中勾選Target Membership

設定完後即可排除異常

--

--

--

學習 Swift iOS App 開發的學生作品集

Recommended from Medium

What’s The Best API To Stay On Top Of Gold Market Swings?

Resources to get started with Sustainable Web Development 2022

Some very important TIPS:

16 Unique Hadoop Features — Reasons for Hadoop Popularity[/caption]

Remix for Hackathons

Combine old git commits using GitKraken

Best Historical Data API for XCU

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Peggy Tsai 

Peggy Tsai 

iOS & Golang 隨手記 www.linkedin.com/in/peggytsaifc 歡迎+Linkedin交流~

More from Medium

Check UITableViewCell currently exists before tableview reloadRows刷新Cell前檢查Cell當下元件是否已生成

100 Days of SwiftUI Learning — Day 3

Getting start Fastlane Part 2

Ephemeral CI for iOS with GitHub Actions and Orka Just Got Better