Post

Replies

Boosts

Views

Activity

Duplicate output file
Hi everyone.Multiple commands produce '/Users/username/Library/Developer/Xcode/DerivedData/myApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist':1) Target 'myApp' (project 'myApp') has copy command from '/Users/username/Documents/Custom-Projects/aFolder/myApp/myApp/Info.plist' to '/Users/username/Library/Developer/Xcode/DerivedData/myApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist'2) Target 'myApp' (project 'myApp') has process command with output '/Users/username/Library/Developer/Xcode/DerivedData/myApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist'I think I did something wrong somewhere but I don't know where.I have a project with two targets, the difference between both are the name of the app and, of course, the info.plist.Both targets compile fine till yesterday afternoon, one target compile fine but the other not with the following message:I work with Xcode 11.x.x and with the new build system (not the legacy) and that for a long time.I checked everything I can and finally, I restaured a copy of my app from TimeMachine but the probleme stay.When I try to compile, the following error message appear immediately:Showing Recent MessagesBuild target MyApp of project MyApp with configuration Debugwarning: The Copy Bundle Resources build phase contains this target's Info.plist file '/Users/theDev/Documents/Custom-Projects/MyFolder/MyApp/MyApp/Info.plist'. (in target 'MyApp' from project 'MyApp')warning: duplicate output file '/Users/theDev/Library/Developer/Xcode/DerivedData/MyApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/MyApp.app/Info.plist' on task: ProcessInfoPlistFile /Users/theDev/Library/Developer/Xcode/DerivedData/MyApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/MyApp.app/Info.plist /Users/theDev/Documents/Custom-Projects/GOKYO/MyApp/MyApp/Info.plist (in target 'MyApp' from project 'MyApp')So I think it's not in my app but somewhere on my MacBook Pro ?I would appreciatye if someone could help.Thanks
5
0
16k
Mar ’20
Creating a TabBarController in AppDelegate
Hi everyone, wish you a happy New Year 2020 !What could be wrong in that methode ? I'm wonder why "window" stay nil.import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. if let tabBarController = window?.rootViewController as? UITabBarController { let storyboard = UIStoryboard(name: "Main", bundle: nil) let vc = storyboard.instantiateViewController(withIdentifier: "NavController") vc.tabBarItem = UITabBarItem(tabBarSystemItem: .topRated, tag: 1) tabBarController.viewControllers?.append(vc) } return true }The lines #12 to #15 are never used !?https://www.judogokyo.com/ftp/P7MainStoryboard.pngThanks a lot
2
0
2.9k
Jan ’20