Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28303

Xcode 12.3: Unable to build an app with modules that include third-party SDKs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: Release 9.3.0
    • Fix Version/s: Release 9.3.1
    • Component/s: None
    • Labels:
    • Story Points:
      3
    • Sprint:
      2021 Sprint 1

      Description

      I'm filing this ticket since multiple people on Slack are reporting build errors with the latest Xcode 12.3:
      https://ti-slack.slack.com/archives/C03CVQX2A/p1608033847217400
      https://ti-slack.slack.com/archives/C03CVQX2A/p1608193731266100

      The error is:

      error: Building for iOS Simulator, but the linked and embedded framework 'SDWebImage.framework' was built for iOS + iOS Simulator
      

      or

      Modules
      Ti.Animation
      [TRACE] error: Building for iOS Simulator, but the linked and embedded framework 'Lottie.framework' was built for iOS + iOS Simulator. (in target 'app' from project 'app')
       
      AV.ImageView
      [TRACE] error: Building for iOS Simulator, but the linked and embedded framework 'SDWebImage.framework' was built for iOS + iOS Simulator. (in target 'app' from project 'app'
      

      According to Stackoverflow https://stackoverflow.com/a/65306886/5193915 you have to set: Validate Workspace to Yes

      Another solutions would be removing archiitectures from the modules

      simulator

      lipo -info Lottie.framework/Lottie
       lipo -remove armv7  Lottie.framework/Lottie -output Lottie.framework/Lottie
       lipo -remove arm64  Lottie.framework/Lottie -output Lottie.framework/Lottie
      

      device:

      lipo -info Lottie.framework/Lottie
       lipo -remove i386  Lottie.framework/Lottie -output Lottie.framework/Lottie
       lipo -remove x86_64  Lottie.framework/Lottie -output Lottie.framework/Lottie
      

      A downgrade to Xcode 12.2 is the best solution at the moment

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              michael Michael Gangolf
              Reviewer:
              Vijay Singh
              Tester:
              Satyam Sekhri
            • Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration