OC and Swift Mixed essays

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.