Objective:
The first two blog problems encountered in the first few days in the laboratory development encountered, spent two or three days in the above, today suddenly whim, want to put down these "pits" written down, so only the two wrote the Very Ugly blog essays
Today, in the development of a problem, that is the title described:
The network request with the ASIHTTPRequest class is requested on both the simulator and the real machine, but packaged into an IPA package placed on the real machine, ASI does not request the status bar Chrysanthemum is not, directly with Xcode compiled, can also request
Compile archive after normal pass, publish to test platform, mobile phone after installation found unable to use the network, whether it is WiFi or traffic, can not carry out normal network communication
Tossing the most of the day, or no clue, and then carefully analyzed thought may be the ASI network communication problems, so look for information, try a lot, there is no solution!
All right, crap, not much. Directly on the solution:
If the project is ARC's third-party file compilation option plus -fno-objc-arc-o0
Rather than just-FNO-OBJC-ARC, we started off with a direct use of the -fno-objc-arc, which is why the issue arises when you package an IPA .
Hey! So that's the problem with the ASI that hasn't been updated for more than two years.
The next project to start using AFN should be able to avoid this problem
The third hole in iOS development-works properly under Xcode using the ASI framework, but is not network-accessible when packaged