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'
L'exécution du code dans Xcode9 fonctionne, mais entraîne une erreur dans Xcode10.
Le problème peut être dû à la présence de plusieurs fichiers Plist ou autres dans l'application.
Solution -> Ouvrir la cible -> Phases de construction -> Copier les ressources du paquet et supprimer info.plist
de là.
[!entrer la description de l'image ici][1]][1]
[1] : https://i.stack.imgur.com/whT0P.png
Note: Si vous avez développé une application de montre aussi, vous devrez supprimer le plist de la montre et de l'extension de la montre aussi.
En vérifiant le journal de construction, j'ai remarqué un avertissement :
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/<redacted>/Repositories/Whitesmith/optimize-ios/Carthage/Checkouts/WSStatusBarNotification/Miscellaneous/Info.plist'. (in target 'JDStatusBarNotification')
Donc, si c'est votre cas, allez simplement à votre cible :
info.plist
.