Posts

Post not yet marked as solved
5 Replies
13k Views
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
Posted Last updated
.
Post not yet marked as solved
2 Replies
2.5k Views
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
Posted Last updated
.
Post not yet marked as solved
1 Replies
6.7k Views
Hello everyone,That's for objective cI would like to insert a sf symbo into a string for a title of a AlertViewController ?UIAlertAction* mailAction = [UIAlertAction actionWithTitle:[@" " stringByAppendingString:NSLocalizedString(kSENDBYMAIL, @"")] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [self createMail:alert]; }];I tryed as below but I know it's wrong, it's just to precise ma question ;-) :UIAlertAction* mailAction = [UIAlertAction actionWithTitle:[[UIImage systemImage:@"envelope " stringByAppendingString:NSLocalizedString(kSENDBYMAIL, @"")] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [self createMail:alert]; }];Thanks for a hintDon
Posted Last updated
.
Post not yet marked as solved
4 Replies
772 Views
Hello everyone, I'm not sure how to ask my question?When my UIAlertController appears, my ViewController in the background zoom (grows)?I use the code below in objective-c Xcode 11.3.1:I can't figure it out why ? I would apreciate if someone can make me on the way.- (void)productDescription:(NSInteger)index { SKProduct *product = _products[index]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:product.localizedTitle message:product.localizedDescription preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(kOK,@"") style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [self buyProduct:index]; } ]; UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:NSLocalizedString(kCANCEL,@"") style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { } ]; [alert addAction:okAction]; [alert addAction:cancelAction]; UIViewController *topController = self.window.rootViewController; while (topController.presentedViewController) topController = topController.presentedViewController; [topController presentViewController:alert animated:YES completion:nil]; } Here is the link to view the effect https://www.judogokyo.com/ftp/iPad_badZoom.mp4
Posted Last updated
.
Post marked as solved
6 Replies
5.1k Views
Hi there,Because Xcode crashes when clicking in IB TextView after selecting "attributed", I need to know how to get parts of text in different styles and sizes, for example:This should be in Helvetica bold 13 and this should be in Helvetica normal 11How can I do that in code (Objective-c) ?Thanks in advance for any advice
Posted Last updated
.
Post not yet marked as solved
2 Replies
874 Views
Hi there,I have two targets "A" and "B" in the same development. I did the constraints in IB with Using Targets variations and Vary for Traits.Results :Target "A" displays the Main_iPhone.storyboard correctly in full screen on the sim iPhone X...Target "B" displays the Main_iPhone.storyboard incorrectly (like a iPhone 8+ for example) on the sim iPhone X...The question is : why do they display differently 😕 ?https://www.judogokyo.com/ftp/wrongDispaly.png
Posted Last updated
.