I have a new project with 3 targets.
each target has its own plist.info (and each is set to its own target)
when I compile for iOS I get these errors
LaserLab Project Group
Error Group
Multiple commands produce '/Users/davidsisemore/Library/Developer/Xcode/DerivedData/LaserLab-gsmzaztmbgbkfzcrthqfbicagghq/Build/Products/Debug-iphonesimulator/LaserLabIOS.app/Info.plist':
1) Target 'LaserLabIOS' (project 'LaserLab') has copy command from '/Volumes/Drive #1/SWIFT-Projects/LaserLab/LaserLabIOS/Info.plist' to '/Users/davidsisemore/Library/Developer/Xcode/DerivedData/LaserLab-gsmzaztmbgbkfzcrthqfbicagghq/Build/Products/Debug-iphonesimulator/LaserLabIOS.app/Info.plist'
2) Target 'LaserLabIOS' (project 'LaserLab') has process command with output '/Users/davidsisemore/Library/Developer/Xcode/DerivedData/LaserLab-gsmzaztmbgbkfzcrthqfbicagghq/Build/Products/Debug-iphonesimulator/LaserLabIOS.app/Info.plist'
LaserLabIOS Group
Warning Group
/Volumes/Drive #1/SWIFT-Projects/LaserLab/LaserLab.xcodeproj The Copy Bundle Resources build phase contains this target's Info.plist file '/Volumes/Drive #1/SWIFT-Projects/LaserLab/LaserLabIOS/Info.plist'.
duplicate output
and a compile for macOS gives me
/Volumes/Drive #1/SWIFT-Projects/LaserLab/LaserLab.xcodeproj The Copy Bundle Resources build phase contains this target's Info.plist file '/Volumes/Drive #1/SWIFT-Projects/LaserLab/LaserLab/Info.plist'.
Did you copy pasted stuff? Click on the Info.plist and check if there is any Target Membership set on the right hand side panel in Xcode. If it's set, then uncheck it. The Info.plist files are explicitly referenced through the build settings not through target membership.
Yep. Again, the Info.plist file are referenced in the build settings. If you set it in the target membership it will try to include it multiple times which will likely cause your duplicate warning.
You can simply try it by creating a new project or just a new target, then set the target membership of the file and see what happens.
I created a Viewcontroller... I did this in a stand alone iOS targeted project... everything worked
I copied the AppDelegate and ViewController into my multi-target project (set the targets on those two files). AppDelegate starts, the VC calls INIT, but never loads
Right now the process consists of just those two files for iOS
Btw. for your above workaround, where did your renamed the files? Directly from the finder or through Xcode?
If you did it through the finder, then Xcode just lost the reference to Info.plist as per target membership (which should result to the file name having red text) and then copies the Info_.plist through the reference in the build settings.
Just rename them back to Info.plist, update the build settings and make sure that target membership is unchecked. ;)
I'm a bit rusty on the loading process as the newer API uses scenes, but the projects I work with are still having the deprecated API or in SwiftUI which doesn't have any AppDelegate at all. Maybe someone else can help you out with this.
Solved... Copied the plist.info from the standalone to the multi-target and now it works
The multi-target had scene oriented stuff that wasn't needed....
I don't follow the standard conventions...
my projects are 100% code... I don't do IB nor do I do AL