include of non-modular header inside framework module GRDBgrdb_config UsersadminLibraryDeveloperXcodeDerivedDataGPTNAME-djudlxhwiosdobeolleqqyzhxnufBuildProductsDebug-iphonesimulatorSQLCipherSQLCipher
这个错误是因为在GRDB.grdb_config模块中包含了非模块化的头文件。需要将这个头文件添加到模块化中,或者将其移除。具体的解决方法可以参考以下几个步骤:
-
点击错误提示,定位到错误所在的代码行。
-
找到包含非模块化头文件的代码行,例如: #include "/Users/admin/Library/Developer/Xcode/DerivedData/GPTNAME-djudlxhwiosdobeolleqqyzhxnuf/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h"
-
将这个头文件添加到模块化中,例如:在GRDB.grdb_config模块的module.map文件中添加以下内容:
module GRDB.grdb_config { header "/Users/admin/Library/Developer/Xcode/DerivedData/GPTNAME-djudlxhwiosdobeolleqqyzhxnuf/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h" export * }
-
如果不需要使用这个头文件,可以将其移除,例如:在GRDB.grdb_config模块的源代码中删除包含这个头文件的代码行。
-
重新编译项目,检查是否还有其他错误
原文地址: https://www.cveoy.top/t/topic/hpad 著作权归作者所有。请勿转载和采集!