Posts

Post not yet marked as solved
1 Replies
3.5k Views
If I create an universal project using Xcode 12 and try to import any class/struct contains a property with Date type, the test target will failed to build due to linker error when User is referenced in the test. func testUser() { 	let user: User? } Some part of the error Undefined symbols for architecture x86_64: 	"nominal type descriptor for test.User in UserTests.o" 	"type metadata accessor for test.User" ... The user class looks like this: struct User { 	let id: String 	let createdAt: Date } If I remove the createdAt: Date from the User, the build passes without any issue. Also tested the same setup with standard iOS app using SwiftUI and SiwftUI app lifecycle, works as expected. So looks like an issue for Universal app project.
Posted Last updated
.