Xcode 10 Fehler: Mehrere Befehle erzeugen

error: Multiple commands produce '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist':
1) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist' to '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist'
2) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Server/Masonry/Info.plist' to '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist'
3) Target 'OptimalLive' has process command with input '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist'

Das Ausführen des Codes in Xcode9 funktioniert, führt aber in Xcode10 zu einem Fehler.

Lösung

Das Problem tritt möglicherweise aufgrund mehrerer Plist- oder anderer Dateien innerhalb von App-

Lösung -> Öffnen Sie das Ziel -> Build-Phasen > Kopieren Sie Bundle Resources_ und entfernen Sie info.plist von dort.

Hinweis: Wenn Sie auch eine Uhren-App entwickelt haben, müssen Sie die plist auch aus der Uhr und der Uhr-Erweiterung entfernen.

Kommentare (30)

Versuchen Sie auch dies. Xcode->File->Project Settings-> Build System -> Legacy Build System.

Kommentare (4)

Bei der Überprüfung des Build-Protokolls fiel mir eine Warnung auf:

note: Using new build system
note: Planning build
note: Constructing build description
Build system information
warning: The Copy Bundle Resources build phase contains this target's Info.plist file '/Users//Repositories/Whitesmith/optimize-ios/Carthage/Checkouts/WSStatusBarNotification/Miscellaneous/Info.plist'. (in target 'JDStatusBarNotification')

Wenn das bei Ihnen der Fall ist, gehen Sie einfach zu Ihrem Ziel:

  1. Bauphasen
  2. Kopieren Sie die Bündelressource
  3. Entfernen Sie info.plist.
Kommentare (3)