NetEase Video Cloud Technology Analysis: iOS Engineering common Problem solving method

Source: Internet
Author: User

NetEase Video Cloud NetEase is the introduction of video cloud services, has now been widely used in online education, show live, telemedicine, enterprise collaboration and other fields. Now, NetEase video cloud Technical experts to share a mobile app testing technology text:iOS Engineering common problems solution.

Recent iOS tests have encountered several environmental problems, mainly due to the new version of the development tools and the new version of the iOS system. Now pick two more typical questions to share with you.

1. Problems with the Xcode version

Problem Description: When the development of the survey, the creation of the project was created on the Xcode6 version, while the test environment using the new version of Xcode7, will be the development of the project to compile the survey after the following error:

LD: '/users/netease/downloads/nos-ios-demo-for-stabilitytest/nossdkdemo/libnos iOS sdk.a (NOS.o) ' does not contain Bitcode. You must rebuild it with Bitcode enabled (Xcode setting Enable_bitcode), obtain a updated library from the vendor, or DISA ble bitcode forthis target. For Architecture Arm64clang:error:linker command failed with exit code 1 (use-v to see invocation)

Specific display:

  

Problem Analysis: Through the compilation process reported errors, it is obvious that the third-party library does not contain bitcode problems, in particular, to see the official Bitcode explanation

Bitcode is an intermediate representationof a compiled program. Apps upload to ITunes Connect that contain Bitcodewill is compiled and linked on the App Store. Including Bitcode'll allowapple to re-optimize your apps binaryin the future without the need to submit anew versionof yo ur app to the store. Bitcode. When your archive for submission tothe app Store, Xcode'll compile your app into an intermediate representation. The App Store would then compile the Bitcode to the 64or32 bitexecutables as necessary.

As we can see from the above explanation, Bitcode belongs to an intermediate form of the compiled program, similar to the. o file in C. When the new app needs to be published, just submit the corresponding binaries, leaving the rest to AppStore to complete without having to submit a new version via AppStore.

In response to the above questions, the authorities have also given a solution:

You must rebuild it with Bitcode enabled (Xcode setting Enable_bitcode), obtain a updated library from the vendor, Ordisab Le Bitcode forthis target. For Architecture arm64

Since Xcode7 turns on Bitcode by default and this option is optional for non-watch apps, the best solution is to turn off the bitcode switch, as follows:

  

Problems with the 2.IOS release

Currently iOS released more than 9.0 version, but IOS9 has a new feature, Apple changed the original HTTP protocol to the HTTPS protocol, using TLS1.2 SSL encryption request data, when the original works in more than 9.0 version of the compilation run, there will be the following error: Use the normal HTTP request to report the following error:

Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app ' s info.plist file.

Let's take a look at the official explanation:

If you ' re developing a new app, you should use HTTPS exclusively. If you had an existing app, you should use HTTPS as much as can RightNow, andcreate a plan for migrating the rest of Your app as soon as possible. In addition, your communication through higher-level APIs needs to BES encrypted using TLS version1.2with forward secrecy. If you try to make a connection that doesn ' t follow this requirement, an error is thrown. If your app needs to make a request to the insecure domain, you have to specify this domain in your app ' s info.plist file.< /p>

The quick workaround for this problem is to modify the Plist file, as follows: Add the following configuration to the Info.plist file:

.... Nsapptransportsecuritynsallowsarbitraryloads

Interface modification Configuration,

  

NetEase Video Cloud Technology Analysis: iOS Engineering common Problem solving method

Related Article

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.