跳到主要內容

iOS Static Library 實作筆記





讓Reference的專案可發佈

  1. TARGETS→Build Settings→All Search: custom
  2. Apple LLVM 7.1Custom Compiler Flags
    設定: -fembed-bitcode 



發佈(匯出) {專案名}.a


  1. 選擇 Simulator →
    Build →
    Product {專案名}.a Show in Finder→
    更名 {專案名}_simulator.a→
    拉至Desktop\{專案名}資料夾
  2. 選擇 Generic iOS Device → Build →Product {專案名}.a Show in Finder→
    更名 {專案名}_device.a→
    拉至Desktop\{專案名}資料夾
  3. 開啟終端機→
    進入Desktop\{專案名}資料夾→
    執行: lipo -create "{專案名}_device.a" "{專案名}_simulator.a" -output "{專案名}.a"

留言

這個網誌中的熱門文章

刪除Office 2016金鑰的Command

前往安裝目錄 cd C:\Program Files (x86)\Microsoft Office\Office16 查詢已安裝金鑰 (會顯示金鑰末5碼) cscript OSPP.VBS /dstatus 刪除已安裝金鑰 ( XXXXX 為末5碼) cscript ospp.vbs /unpkey: XXXXX 重新啟動Office任一產品 or  安裝金鑰 cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX 搞定 為什麼要特地記錄2016的刪除方法呢? 因為在  程式和功能  裡, 變更 無法更改金鑰

.NET WebAPI 2 Custom Response Message

Imports System.Net Imports System.Web.Http Imports System.Net.Http Imports Newtonsoft.Json Imports System.Web.Http.Filters ''' <summary> ''' 登入驗證錯誤自訂訊息 ''' </summary> ''' <remarks> </remarks> Public Class TestAuthorizeAttribute Inherits AuthorizeAttribute Protected Overrides Sub HandleUnauthorizedRequest(actionContext As Controllers.HttpActionContext) MyBase.HandleUnauthorizedRequest(actionContext) actionContext.Response.Content = New StringContent(JsonConvert.SerializeObject(New Dictionary(Of String, String) From {{"result", "-1"}}, Formatting.Indented)) Select Case actionContext.Response.StatusCode Case 401 Dim dicError As Dictionary(Of String, String) = New Dictionary(Of String, String) From { {"result", "-1"}, {"msg", "Login F...