A part of the source code that uses the OC project on the SWIFT Project today found the following issues:
1. OC cannot inherit the Swift class
2. OC cannot use the Pure Swift class
3. Functions with closures cannot be called by the OC class
These issues make it difficult for OC to use swift source code
I found this problem when I packed it yesterday:
"Undefined Symbols for architecture arm64:
"__tffc11duiduialive21datacentermerchantsvcgp33_ 2f08bf04e285995bda3e31b94bcf039714collectionviewcso16uicollectionviewaul_4selfs0_ ", referenced from:
__ttsf4g___tffffc11duiduialive21datacentermerchantsvcgp33_ 2f08bf04e285995bda3e31b94bcf039714collectionviewcso16uicollectionviewu_ft_s1_l_23configurecollectionviewfs1_t_ L_11setdelegateft_t_ in DATACENTERMERCHANTSVC.O
Ld:symbol (s) not found for architecture arm64
Clang:error:linker command failed with exit code 1 (use-v to see invocation)
”
This looks like a compiler bug because I deleted the file in build phases and added it again. But finally there is still a file error, just beginning is four files, after the above steps only one. Then I carefully check the error hints, the related function to change the good. It was supposed to be a built-in function, and it would be nice to have him unfold. And I don't know why.
OC and Swift Mixed essays