xcode7,ios9 部分相容設定

2021-07-05 09:07:40 字數 1204 閱讀 4521

神奇的蘋果公司,再一次讓程式設計師中槍。

一、xcode7 新建的專案,foundation下預設所有http請求都被改為https請求.

也就是說,服務需要提供https(tls 1.2)的介面;

如果服務不改變,則客戶端info.plist的根需加下面的鍵值;

簡單信任所有http伺服器

nsallowsarbitraryloads

或者嚴謹的

n***ceptiondomains

二、xcode7 預設開啟,bitcode(iwatch需要),則會導致部分第三方框架報錯(比如友盟的錯誤)

youmeng/libmobclicklibrary.a(mobclick.o)' does not contain bitcode. you must rebuild it with bitcode enabled (xcode setting enable_bitcode), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7

這是要麼更新庫,要麼可以在 build setting 中,搜尋bitcode,並吧 enable bitcode 設定為 no

這是個時候需要ios9 設定-》通用-》描述檔案-》企業級應用 中信任對應的企業開發者。

四、ios9 url schemes 

info.plist加入

urlscheme

urlscheme2

urlscheme3

urlscheme4

五、ipad適配slide over 和 split view

分屏應用最好把純**改為stroyboard

xcode7 ios9遇到的幾個坑

ios菜菜,最近公升級xcode和ios9遇到幾個坑,記錄一下。1 xcode公升級到7之後,真機 不論ios版本 編譯 提示 linker command failed with exit code 1 use v to see invocation 之類的錯誤 解決 找到enable bitco...

day7部分函式

在函式內部呼叫自身 def result n n if n 1or n 2 return 1else result result n n 1 result n n 2 return result print result n 10 55lambda para1,para2,paran express...

iOS 12 部分更新內容

1.uiwebview 現在真正被棄用了,它在xcode9.3中被標記成了 legacy 而現在則正是被棄用.要使用wkwebview代替 2.當ios應用處於黑暗模式時,有了uiuserinte cestyle.dark.但是現在不能再iphone上啟用,但是已經有了一些基礎結構,可以讀取,當模式...