Getting Started Debugging and Packaging for iOS
1. Debugging method
1. Log
NSLog(@"hello");
NSLog(@"%@",@"tt");
NSLog(@"test click %@",@"format");
What are the %@ formatting symbols?
2. Breakpoints and LLDB
breakpoints: XCode breakpoints are the same as Android breakpoints
LLDB: LLDB command -p
output value + type value + reference name + memory address
(lldb) p sender
(UIButton *) $0 = 0x00007f7d93a08a60
LLDB directive -po
(lldb) po sender
<UIButton: 0x7f7d93a08a60; frame = (178 254; 59 31); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x600001c67d40>> configuration=<UIButtonConfiguration: 0x60000206ab00> baseStyle=plain macStyle=automatic buttonSize=medium cornerStyle=dynamic title=<0x600001c3efa0>:'TEST' contentInsets=default imagePlacement=leading imagePadding=0 titlePadding=1 titleAlignment=automatic automaticallyUpdateForSelection background=<UIBackgroundConfiguration: 0x600002974e40; Base Style = Custom; cornerRadius = 5.95; backgroundColor = UIExtendedGrayColorSpace 0 0>
LLDB instruction-expression
3. Check the UI level
4. Packaging
1. Must have an Apple developer account
2. Create a certificate (each application needs to be created)
3. Archive compile and export ipa
4. Upload App Store
direct xcode upload,
package and shelf process
Upload via Transporter