The third hole in iOS development-works properly under Xcode using the ASI framework, but is not network-accessible when packaged

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.