Xcode 開啟支援模組編譯

Xcode Use of ‘@import’ when modules are disabled

這幾天在使用Google AdMob SDK,替APP加入廣告,在使用後編譯發生Use of '@import' when modules are disabled的提示:

原來現在Framework還有使用一種模組的型態,模組型態會使用@import關鍵字將模組引入,但目前的專案沒有將此功能開啟,

所以將它開啟就能解決問題:

最後,重新編譯你的APP。