From: http://blog.csdn.net/shencaifeixia1/article/details/8976756
Error reported when xcode runs on a real machine
[Plain]ViewPlaincopyprint?
While reading/users/yangeric/MIOs/meitu/image/backgroundhomescreen_5.png pngcrush caught libpng error:
The reason is that the prompt PNG is not a PNG in PS, but a PNG extension is manually modified. No error is reported on the simulator, but on the real machine, this so-called "PNG" image is not recognized.
middle of the windowCtrl + K: Delete BankCtrl +. : Parameter HintsTab: Accept Code hintsESC: Show Code hints menuCMD +/: Comment or UncommentCMD + CTRL + left collapseCMD + CTRL + right to cancel foldingCMD + CTRL + TOP collapse all functionsCMD + CTRL + BOTTOM cancel all function foldingCTRL + U Cancel collapse AllCMD + D Add bookmark3. CommissioningCMD + \: Set or Cancel breakpointsCMD + OPT + \: Allows or disables the current breakpointCMD + OPT + B: View all BreakpointsCMD + RETURN: Compile
Getting started with xcode plug-ins
For xcode 5, this article seems outdated in some places. Xcode 5 is now fully switched to arc, so the initialization settings of the plug-in have actually changed. In addition, thanks to a large number of excellent plug-ins (see the link at the bottom of the article), many great gods have gradually joined the ranks of plug-in
window and enters the relevant interface.Jump To Definition (??)Another shortcut key that is equally well known to the Xcode user is to jump to the definition, which opens the edit window to the definition of a constant in the relevant @interface definition or .h file. This feature is useful for looking at code in a system frame like Foundation, and can help you see what's going on behind them.Switch between replicas (^?↑/^?↓/three finger vertical s
========================================================== =============================== Original blog, reprinted please declare the source of Electronic coffee (original id blue rock) ========================================================== ================================
Error reported when xcode runs on a real machine
While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundHomeScreen_5.png pngcrush caught libpng error:
The reason is th
smarter
Although nslog is very useful, everything printed from nslog will be retained on the real machine, and everyone can see it-just connect the device to the computer, and then open the Organiser in xcode, go to the console to view each log. You may realize that this will have some serious impact! Think about it, if you print some confidential algorithm logic or user password to the console! Therefore, if Apple detects that many content is output
box for fonts and colors, and you can copy styles.Text: You can set the left and right alignment of the encoded page, showing the top ruler.Spelling and Grammar: spelling hints and syntax hints.Substitutions: Will come out a dashboard, provide micro-exercise.Transformations: You can convert English to uppercase, all lowercase, and capitalize the first letter.Speech: Start talking and end the conversation.Refactor: RefactoringRename renamingExtract ExtractCreate superclass creating Super classMo
double-click the nsstring symbol to open information about nsstring in the document browser window, such:
4. How to debug the program?
(A) There are two methods: Brute Force debugging and debugger debugging.
What is brute force debugging?
Brute-force debugging adds the nslog () language to your program, and outputs the program control flow and some important data to the terminal.
Debugger debugging:
The debugger is a program between the applicat
For our development process of IOS applications, we is using the Jenkins set up on the Mac Mini Server, acting as a Continuou s integration (CI) server. It's fairly easy to configure Jenkins for Xcode projects using Xcode plugin-however, from time to time we had some issue s with setting it up correctly. In order to debug them, we ' ve decided to include small sh
Melbourne, Australia, and Leszek LA in Warsaw, Poland. Yński (Fuzzy Autocomplete v2.0 author).By adding fuzzy matching to improve the auto-completion function of Xcode code, the developer does not need to follow the principle of the AutoComplete, as long as it remembers a keyword in the method to match, greatly improves the work efficiency.7. BbudebuggertuckawayBbudebuggertuckaway is a Xcode plugin that s
I. Environment variables in the XCODE4$ (Built_products_dir)After the build succeeds, the final product path--can be set in the Per-configuration build products path key of the build settings parameter$ (target_name)Target Project Name$ (srcroot)Path to project files (such as nuno.xcodeproj)$ (current_project_version)Current Project version numberOther:When compiling the static library, device selector simulator (IPhone 5.0 Simulator), the default base path is not set for any build settings para
, processor models) to which the binary is targeted. When this builds setting specifies more than one architecture, the generated binary could contain object code for each of the Specified architectures.And:Valid_archs (VALID architectures)space-separated List of identifiers. Specifies the architectures for which the binary is built. During the build, this list was intersected with the value of archs build setting; The resulting list specifies the architectures the binary can run on. If The resu
1. Mode One
1, compile:
Product-> Archive
2, Export:
Window-> Organizer (Command + Shift +2)-> Archives->distribute ...
Figure: According to need 3 election 1
Two. Mode 2
Into the repository-----Developer-----Xcode------deriverdata--------Own engineering------BUILD------PRODUCTS------This place has the app file you're looking for. , there are various versions of Debug,relase, choose what you
too much detailed explanation. Therefore,Cocoapods can ultimately provide such project management capabilities:Different project can specify links to different or identical third-party librariesDifferent target can specify links to different or identical third-party librariesDifferent target can specify different configurationDifferent configuration( Debug,Release,Custom ) can specify links to different or identical third-party librariesFrom the proj
compatible, so they cannot be used simultaneouslyThe runtime tool has some overhead, as follows:Resources:Finding Bugs Using Xcode Runtime ToolsClang documentation for Address sanitizerClang documentation for Thread sanitizerClang documentation for Undefined Behavior sanitizerCode DiagnosticsUndefined Behavior SanitizerDebugging with Xcode 9Support the wireless debug
New Project Command+shift+n
New File Command+n
New Empty file Command+control+n
Open Command+o
Close Window Command+w
Save All Files Command+option+s
Revert to save State command+u
Create snapshot Command+control+s (save a snapshot of the file, which can be modified later)
Left indent command+[
Right indent command+]
Find Command+shift+f in Projects
Find the next Command+g
Find Previous Command+shift+g
Find command+e with the selection
Go to Line Command+l
The next fill control+.
iOS various debugging Tips Deluxe Package Normal operation3The basic breakpoint operation is as followsFigure 4Click on the Black column to create a breakpoint, click again to temporarily cancel the breakpoint (but do not delete), long press the breakpoint dragged out of the delete (Mac OS system Engineer is the pleasure of the drag of rice porridge), of course, you can right-click on the created breakpoint, will pop up the corresponding menu.Of course, you can also monitor a variable!Figure 5In
Xcode likes to do is jump directly to the main function, just like the first one in the debugging technique. It would be nice if the exception or crash could stay where the anomaly or crash occurred. Fortunately, there is a way to do that. Xcode has a nice feature called an exception breakpoint that allows us to place a breakpoint where the exception occurs when the exception occurs.You can specify a speci
recorded generated code, based on the three kinds of objects provided by UITest, I can modify and debug the test code here.The following assertions are also applicable in UITest:Xctassert (expression,format...)//bool Test:Xctasserttrue (expression,format...) Xctassertfalse (expression,format...)//Equality testXctassertequal (expression1, Expression2,format...) Xctassertnotequal (expression1, Expression2,format...)//double float vs. data test usingXct
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.