Post not yet marked as solved
Post marked as unsolved with 0 replies, 842 views
When i work on OC and Swift, with mutable targets. I configured the BuildSetting of Xcode, OC file can build and use success. But When i use module in swift file, then build error.
When I looked into it, i found Framework and Library is different on it, my question is:
Is there a way to work on .swiftinterface file with not use frameworks?It failed on swiftInterface even though I set all the BuildSetting of Xcode.
Loook like , i have to switch to Framework.
Anyone have solution?
with detail:
When i use the Library it will build error with message below
Showing All Messages
CompileSwift normal x86_64 /Users/bieshixuan/mbrepos/SomeFoundation/Example/SomeFoundation/ViewController.swift (in target 'SomeFoundation_Example' from project 'SomeFoundation')
../StorageLib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface:7:8: error: no such module 'SomeFoundation'
import SomeFoundation
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/SomeStorageLib-umbrella.h"
^
../StorageLib.framework/Headers/SomeStorageLib-umbrella.h:13:9: note: in file included from /Users/bieshixuan/mbrepos/SomeStorageLib/binary_frameworks/SomeStorageLib.framework/Headers/SomeStorageLib-umbrella.h:13:
#import "SomeDBStorageManager.h"
^
../AppSomeFile.swift:10:8: error: failed to build module 'SomeStorageLib' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import SomeStorageLib;
^
../StorageLib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface:7:8: error: no such module 'SomeFoundation'
import SomeFoundation
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/SomeStorageLib-umbrella.h"
^
../StorageLib.framework/Headers/SomeStorageLib-umbrella.h:13:
#import "DBStorageManager.h"
When i use the Framework it will build success.