GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IOS App not building since Xcode Update · Issue #4035 · NativeScript/nativescript-cli

IOS App not building since Xcode Update #4035

New issue
Copy link
New issue
Copy link
Closed
Closed
IOS App not building since Xcode Update#4035
Copy link

Description

@divyachandana
divyachandana
opened on Oct 15, 2018
Issue body actions

Xcode build...
error: unexpected duplicate task: CodeSign /Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework (in target 'client')
error: unexpected duplicate task: CodeSign /Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework (in target 'client')
error: Multiple commands produce '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework':

  1. Target 'client' has copy command from '/Users/user/Desktop/sourcecode/srs/client/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework'
  2. Target 'client' has copy command from '/Users/user/Desktop/sourcecode/srs/client/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework'
    error: Multiple commands produce '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework/TNSCore':
  3. Target 'client' has copy command from '/Users/user/Desktop/sourcecode/srs/client/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework'
  4. Target 'client' has copy command from '/Users/user/Desktop/sourcecode/srs/client/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework'
    warning: duplicate output file '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework' on task: PBXCp /Users/user/Desktop/sourcecode/srs/client/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework (in target 'client')
    warning: duplicate output file '/Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp /Users/user/Desktop/sourcecode/srs/client/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework (in target 'client')
    warning: duplicate output file '' on task: PBXCp /Users/user/Desktop/sourcecode/srs/client/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/user/Desktop/sourcecode/srs/client/platforms/ios/build/emulator/client.app/Frameworks/TNSCore.framework (in target 'client')
    note: Using new build systemnote: Planning buildnote: Constructing build description
    ** BUILD FAILED **

Unable to apply changes on device: 70C7A1CB-1359-484C-9500-5352B4641CD8. Error is: Command xcodebuild failed with exit code 65.

Activity

  1. Fatme commented on Oct 23, 2018

    @Fatme
    Fatme
    on Oct 23, 2018
    Contributor
    More actions

    Hi @divyachandana, looking at this error I can see that there are multiple TNSCore.frameworks in your node_modules directory.

    You can find more info in this thread.

    I'm closing this issue as it is duplicated to #3909

  2. Fatme
    closed this as completedon Oct 23, 2018
  3. room58bot commented on Jul 22, 2019

    @room58bot
    room58bot
    on Jul 22, 2019
    More actions

    Just for those that are looking for an answer, I looked through that thread and many, many others that claimed to have a solution to this issue and did not. After hours I managed fix the problem myself. I hope this will save others the time!!

    This is basically caused when you have multiple plugins that need the same files but different versions of them. This problem can be avoided by making sure all nativescript plugins that are used are the same versions. This would be a good first step so you know that the plugins will still work after deleting the duplicate files.

    SOLUTION!!!

    • Open Xcode
    • Select your project
    • Find the 'General' tab (located within the same tab list as Build Phases, Build Settings etc)
    • Scroll down to the 'Embedded Binaries' section.
    • In the list you'll see that TNSCore.framework is in the list multiple times.
    • Remove the duplicates using the '-' button until there is just one.
    • Rebuild and hopefully if there are no other duplicates in that list you should have a successful build
    Reacted by Nikolay Iliev, Rayan Zaatari and Abdullah Khalid Mahmood
    Reacted by jonnuttingYCH and Rayan Zaatari
    Reacted by Stardock-AI, Nikolay Iliev and Rayan Zaatari
    Reacted by Abdullah Khalid Mahmood and MitchAloha
  4. jonnuttingYCH commented on Aug 9, 2019

    @jonnuttingYCH
    jonnuttingYCH
    on Aug 9, 2019
    More actions

    Thank you r58developer. Your fix worked for me :)

  5. Stardock-AI commented on Nov 21, 2019

    @Stardock-AI
    Stardock-AI
    on Nov 21, 2019
    More actions

    Totally fixed the problem for me. I simply deleted the libraries that were complaining of duplication and let tns rebuild them. Fixed!

  6. erkanarslan commented on Mar 1, 2020

    @erkanarslan
    erkanarslan
    on Mar 1, 2020
    More actions

    Not working for me. There are no multiple .framework files listed in the Xcode but I still get this error

    Reacted by Agostino Convertini, Elias Wacheski, Patrick K and Dan Costa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.