Post

Replies

Boosts

Views

Activity

Debugger info - how to interpret and rectify and App submission
Hope someone can offer some guidance for me please. I have an app that runs to my simulators and iPhone devices fine, but with the following error in the debugger. I have a few questions... apologies, am pretty new to this development stuff. 1 - There's so much info here. How do I identify which constraint to check here to find the source of the issue? 2 - Would an issue such as this cause any submission to the App Store to fail? Thanks folks. language 2021-02-26 16:54:51.252513+0000 name[44594:2610742] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want.  Try this:  (1) look at each constraint and try to figure out which you don't expect;  (2) find the code that added the unwanted constraint or constraints and fix it.  (     "NSLayoutConstraint:0x600002c9c780 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x7f932142d310]-(6)-[_UIModernBarButton:0x7f932142b070'Featured']   (active)",     "NSLayoutConstraint:0x600002c9c7d0 'CB_Trailing_Trailing' _UIModernBarButton:0x7f932142b070'Featured'.trailing = BackButton.trailing   (active, names: BackButton:0x7f932142a760 )",     "NSLayoutConstraint:0x600002c9d6d0 'UINav_static_button_horiz_position' _UIModernBarButton:0x7f932142d310.leading == UILayoutGuide:0x6000036b32c0'UIViewLayoutMarginsGuide'.leading   (active)",     "NSLayoutConstraint:0x600002c9d720 'UINavItemContentGuide-leading' H:[BackButton]-(0)-[UILayoutGuide:0x6000036b33a0'UINavigationBarItemContentLayoutGuide']   (active, names: BackButton:0x7f932142a760 )",     "NSLayoutConstraint:0x600002ca7e80 'UINavItemContentGuide-trailing' UILayoutGuide:0x6000036b33a0'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x7f932140ee40.trailing   (active)",     "NSLayoutConstraint:0x600002c9dea0 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x7f932140ee40.width == 0   (active)",     "NSLayoutConstraint:0x600002c90230 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x6000036b32c0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UINavigationBarContentView:0x7f932140ee40 )" ) Will attempt to recover by breaking constraint  NSLayoutConstraint:0x600002c9c780 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x7f932142d310]-(6)-[_UIModernBarButton:0x7f932142b070'Featured']   (active) Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in UIKitCore/UIView.h may also be helpful. code-block
0
0
627
Feb ’21
Saving two user data item Strings that are not lost on shutdown - how?
Hi All Noobie here, just signed up to the Apple Developer program, and I am very excited to be on this journey of fascinating exploration, especially at my ripe old age! Wish me luck!!! Anyways, I have the makings of something small... an idea, an equally small market (which is fine by the way), and importantly - an app that I've been developing in my little niche - but I do need support in several functional areas to allow me to add those small touches of finesse to the app. One such area is that of maintaining user data once the app is exited or the device powered off/reset. In my app I have profile page where users can enter their name and one additional detail item that remain live so long as the app is not closed down, or the device remains turned on. However, if the device is powered off, or the app shut down this data is lost. Once the user has entered their name for example, how do I write this back to somewhere such that when they next use the app this data is restored? How would I go about this - in its simplest form, please? I don't need masses of data stored, no huge database or SQL tables... just two data items that the user can already enter in to a profile page. Simply two String data items. All advice greatly appreciated. Many thanks all John
1
0
614
Feb ’21
How to include carriage return within a json data element?
Is there a way of including a carriage return within a json data entry? I have a few sentences within a json file that I would like, when presented in the app, to be shown over a few new lines. So for example... { "notes": "This is a long sentence and is included within the json file. I would each new sentence within this data to show on a new line within the same variable", "anotherfield": "Shorter" } Is there a way to get each sentence within "notes" to show on a new line when I extract and present the json data in a view? Hope I explained that clearly enough.
1
0
1.3k
Feb ’21
How do you guys manage backups i.e. current working version v's development version
Hey all Just wondering how you experts manage your back up processes in Xcode as I am sure I don't do this int he correct manner. I simply take a copy of the finder folder containing all my app data, everything, and copy that to a separate drive, rename the folder to backup_version_date and that's that. Then I continue to work on the current version. How do you guys manage this process in Xcode? Is there an inbuilt function in Xcode that would facilitate this or make it easier/safer for me to adopt? What's your advice please? ta
1
0
367
Feb ’21