devzkndeMacBook-Pro:KNPodlib devzkn$ pod trunk me
- Name: zhangkn
- Email: developerkunnan@gmail.com
- Since: April 25th, 06:23
- Pods:
- Sessions:
- (void)exit{ | |
// NSLog(@"presentingViewController :%@",self.presentingViewController); | |
//iOS判断当前ViewController是push还是present方式显示的 | |
if (self.presentingViewController) { | |
[self dismissViewControllerAnimated:YES completion:nil]; |
#!/bin/bash | |
#用lipo合并模拟器Framework与真机Framework | |
DATE=$(date +%Y%m%d-%T) | |
mkdir -p /Users/devzkn/Desktop/lib/lib_$DATE/lib_real_iphonesimulator | |
#合并文件 | |
lipo -create /Users/devzkn/Library/Developer/Xcode/DerivedData/iPos-bzjkdluhflvvnmgjldfubxpmrdrj/Build/Products/Debug-iphoneos/libiPxxxosLib.a /Users/devzkn/Library/Developer/Xcode/DerivedData/iPos-bzjkdluhflvvnmgjldfubxpmrdrj/Build/Products/Debug-iphonesimulator/libiPxxxosLib.a -output /Users/devzkn/Desktop/lib/lib_$DATE/lib_real_iphonesimulator/libiPxxxxosLib.a | |
#rm -r /Users/devzkn/Desktop/lib/ |
# | |
# Be sure to run `pod spec lint KNCocoaTouchStaticLibrary.podspec' to ensure this is a | |
# valid spec and to remove all comments including this before submitting the spec. | |
# | |
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html | |
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ | |
# | |
Pod::Spec.new do |s| |
# OS X | |
.DS_Store | |
# Xcode | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 |
#define MYBUNDLE_NAME @"KNPodlib.bundle" | |
//#define MYBUNDLE_PATH [[NSBundle bundleForClass:NSClassFromString(@"Const")].resourcePath stringByAppendingPathComponent:MYBUNDLE_NAME] | |
#define MYBUNDLE_PATH [[NSBundle bundleForClass:[self class]].resourcePath stringByAppendingPathComponent:MYBUNDLE_NAME] | |
#define mainBundle_PATH [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent: MYBUNDLE_NAME] | |
#define knmainBundle [NSBundle bundleWithPath: mainBundle_PATH] | |
#define knpngBUNDLE [NSBundle bundleWithPath: MYBUNDLE_PATH] |
{ | |
"name": "KNPodlib", | |
"version": "0.1.3", | |
"summary": "KNPodlib Improve feedback interface and customize webview functionality", | |
"description": "TODO: Add long description of the pod here.", | |
"homepage": "https://github.com/zhangkn/KNPodlib", | |
"license": { | |
"type": "MIT", | |
"file": "LICENSE" | |
}, |
devzkndeMacBook-Pro:KNPodlib devzkn$ pod trunk me
Options:
--force Overwrite existing
files.
--no-mangle Do not mangle
symbols of
depedendant Pods.
--embedded Generate embedded
frameworks.
--library Generate static
├── Podfile ├── Podfile.lock ├── Pods │ ├── Headers │ ├── KNPodlib │ │ ├── Assets │ │ │ ├── deleteX.png │ │ │ ├── hebaoGrayPoint.png │ │ │ ├── hebaoWhitePoint.png │ │ │ └── store_add.png
function knxcodeipa() { | |
echo "**************************开始导出ipa文件....*********************************" | |
# Xcode9需要加上 -allowProvisioningUpdates | |
xcodebuild -exportArchive \ | |
-archivePath ${export_archive_path} \ | |
-exportPath ${export_ipa_path} \ | |
-exportOptionsPlist ${ExportOptionsPlistPath} \ | |
-allowProvisioningUpdates |