iOS 制作基于pod开发第三方framework的二次封装
主要记录如何将第三方SDK的.a或framwwork集成到自己的framework中,并构建自己的pod发布到私有库所遇到的问题。
集成
// It's tested on ios 8.2 .. | |
// Apple document about virtual memory: | |
// Both OS X and iOS include a fully-integrated virtual memory system that you cannot turn off; it is always on. | |
// https://developer.apple.com/library/mac/documentation/Performance/Conceptual/ManagingMemory/Articles/AboutMemory.html | |
// Discussing mmap on ios: | |
// http://stackoverflow.com/questions/13425558/why-does-mmap-fail-on-ios | |
// http://stackoverflow.com/questions/9184773/is-there-a-practical-limit-on-the-number-of-memory-mapped-files-in-ios | |
#include <sys/mman.h> |
// | |
// PerformanceMonitor.m | |
// SuperApp | |
// | |
// Created by qianjianeng on 15/11/12. | |
// Copyright © 2015年 Tencent. All rights reserved. | |
// | |
#import "PerformanceMonitor.h" | |
#import <mach/mach.h> |
// | |
// PSPDFThreadSafeMutableDictionary.m | |
// | |
// Copyright (c) 2013 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
PROPFIND https://caldav.calendar.yahoo.com/
<?xml version="1.0" encoding="UTF-8" ?>
<DAV:multistatus xmlns:AI="http://apple.com/ns/ical/"
xmlns:CS="http://calendarserver.org/ns/"
xmlns:DAV="DAV:"
xmlns="urn:ietf:params:xml:ns:caldav"
xmlns:ical="http://www.w3.org/2002/12/cal/ical#">
require 'rexml/document' | |
require 'rexml/xpath' | |
require 'http' | |
require 'icalendar' | |
HTTP::Request::METHODS = HTTP::Request::METHODS + [:report] | |
module AppleCalDav | |
class Client | |
attr_accessor :username, :password |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'xcodeproj' | |
name = 'test_copy' | |
proj = Xcodeproj::Project.open('test.xcodeproj') | |
src_target = proj.targets.find { |item| item.to_s == 'test' } |