Skip to content

Latest commit

 

History

History
88 lines (52 loc) · 2.22 KB

ios_tips.md

File metadata and controls

88 lines (52 loc) · 2.22 KB

...menustart

...menuend

Tips

符号化crash 日志

# ios Debug
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
alias symbolicatecrash="/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash"

把你的.crash文件.app文件和.dSYM文件放在同一个目录下然后运行:
symbolicatecrash -v ScaryCrash.crash > Symbolicated.crash

IPA create , app -> ipa

#!/bin/bash  

APPNAME="justdance"  
ZIPNAME="${APPNAME}zip" 
IPANAME="${APPNAME}IPA" 
  
mkdir -p ./ipa/Payload  
cp -r ./${APPNAME}.app ./ipa/Payload  
cd ipa  
zip -r ${ZIPNAME} *  
mv ${ZIPNAME}.zip ${IPANAME}.ipa  

mobile provision file 解码

security cms -D -i example.mobileprovision

设备版本过高,xcode无法真机debug

  • download device support files if you don't want to change your Xcode right now from
  • And then put at a location.
    • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

Swift use OC framework

  1. create a bridging header file

    • <#YourProjectName#>-Bridging-Header.h
  2. Build Setting / Objective-C Bridging Header

    • link your bridging header file
    • It's best practice to link your project using the $(SRCROOT) macro so that if you move your project. $(SRCROOT) can be thought of as the directory that contains your .xcodeproj file.
  3. In YourProject-Bridging-Header.h:

    • #import "<#yourFrameWork/yourheader>.h"