Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Ios plugin build error when adding swift code

Discussion in 'iOS and tvOS' started by Stelette, Feb 14, 2021.

  1. Stelette

    Stelette

    Joined:
    Nov 3, 2017
    Posts:
    17
    Hello, I'm sorry if this is easy to fix,but I can't find an answer and a solution how to fix it.There is a plugin in Objective-C, compiled and collected, and decided to add swift code, the library is going, but the Unity project is no longer going and I can't understand what the reason is (I tried to add postprocessing and collect it without it) the error is the same.The error itself is in the form of text:
    ld: in /Users/stelette/Documents/TEST_project/Test_IPA/TEST_IPA/Libraries/Plugins/iOS/libTst.a(UnityBridge.o), building for iOS Simulator, but linking in object file built for Mac Catalyst, for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     

    Attached Files:

  2. Stelette

    Stelette

    Joined:
    Nov 3, 2017
    Posts:
    17
    I will answer who may have the same error. The project needs to be created only in the legacy build system and in the build settings of the project to find the word Mac Catalyst and parameters wherever it is Yes to put No ( I only had 3 parameters of these)