046、
這時候你可以給華夏鄧白氏打電話,詢問你的申請的流程走到哪一步,是否收到你的申請
找到華夏鄧白氏官網的電話打過去, 他們會一個推一個的, 經過幾次推諉(寶寶表示不開心), 最后,下面的電話你可以咨詢的到
已經驗證過了,這個電話可以咨詢鄧白氏申請狀態。
045、team id
0043/
青花瓷抓包
鄭重提醒, iOS10.3的真機抓包https, 在手機設置,關于本機,最下邊有一個證書信任,必須打開charles的證書信任,才能抓包,而且,掛證書的api貌似抓不到包,只顯示?, 只有不掛證書的才能抓到
0042
ios app無法驗證其完整性
是因為UDID問題,開發者描述文件沒有包含這個手機UDID
0041
ld: in /Users//Downloads/DVoiceSend-master/lib/iflyMSC.framework/iflyMSC(IFlyZipData.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users//Downloads/DVoiceSend-master/lib/iflyMSC.framework/iflyMSC' for architecture arm64
PS:直接把VALID_ARCHS的value刪了也能編譯成功,但是我這邊運行會報沒有權限訪問項目.app文件的錯
在項目Target——Build Settings里找到它
在VALID_ARCHS中加入了x86_64之后我這里就可以正常運行了
0040
//設備名稱
? ? NSString* deviceName = [[UIDevice currentDevice] systemName];
? ? NSLog(@"設備名稱: %@",deviceName );
? ? //手機系統版本
? ? NSString* phoneVersion = [[UIDevice currentDevice] systemVersion];
? ? NSLog(@"手機系統版本: %@", phoneVersion);
? ? //手機型號
? ? NSString* phoneModel = [[UIDevice currentDevice] model];
0039
插入視圖層級
將一個UIView顯示在最前面只需要調用其父視圖的 bringSubviewToFront()方法。
將一個UIView層推送到背后只需要調用其父視圖的 sendSubviewToBack()方法。
開發者賬號過期不能打包
需要更新一下相關證書就行了。
need-to-insert-img
0038、
dispatch_barrier_sync的作用是阻塞當前線程,把queue中的所有任務執行完畢之后,再去執行barrier的block
dispatch_barrier_async不阻塞當前線程,調用之后,立即返回當前線程,繼續執行后面的代碼。
0037、刪除多余證書
1、刪除Xcode中多余的Provisioning Profile證書
前往文件夾:~/Library/MobileDevice/Provisioning Profiles,手動刪除其中的配置文件。
如果誤刪,進入開發者中心,下載需要的Provisioning Profile文件,導入Xcode即可。
2、刪除Xcode中的code signing identity中的多余證書
方法:打開鑰匙串訪問,刪除相應的證書即可。
0人點贊
0036、
Permission denied Command PhaseScriptExecution failed with a nonzero exit code
xcode 編譯遇到這樣的情況 :
Permission denied Command PhaseScriptExecution failed with a nonzero exit code
一些老項目在pod 時,會出現編譯失敗的會出現,嘗試手動清理總是不徹底,一個有效的解決方式是安裝 pods 清理工具,然后cd到項目,清理項目中 pods 的關聯后,再重新
pod install
0035、設置圓角
? ? dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
? ? ? ? kkvipV.layer.mask = [[YBToolClass sharedInstance] setViewLeftTop:13 andRightTop:13 andView:kkvipV];
? ? ? ? });
0034/
(1)通過 range 來設置
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"點擊代表您已閱讀并同意用戶規則和協議"];
[str addAttribute:NSForegroundColorAttributeName value:[UIColor orangeColor] range:NSMakeRange(0,11)];
[str addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(11,4)];
[str addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(16,2)];
label.attributedText = str;
0033/
Trapped uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier KKPlazaHomeCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
需要在UICollectionView 創建之后才能 注冊cell。
0032、
編譯報錯:ld: symbol(s) not found for architecture x86_64
出現這個問題的原因如下:
可能是該靜態庫不支持在模擬器下編譯,可使用真機或GenericiOS Device,一般就不會出現這個錯誤了;
從錯誤信息的""_OBJC_CLASS_$_FMDataBase",referenced from:"能夠看出,是缺少FMDataBase文件的引用;解決方法:在Build Phases-->CompileSources(items)中,添加報錯的.m文件,點左下角的"+",在彈出框中找到報錯的.m文件,選中add,添加漏掉的.m文件
刪除重復引用的文件
4. pod的某個庫的版本審核之后, pod install后, pod項目文件夾沒改庫的文件了
刪掉pod工程,重新安裝pod
0031、
UserInterfaceState.xcuserstate? 和.git中有UIwebView 不會影響到IPA包審核
但各種第三方庫是必須不能有UIwebView的
0030
updating apps that use web views
蘋果禁用UIwebView
打開終端,cd到項目根目錄。
執行以下命令,就能查找到哪些文件內還在使用UIWebview。
grep -r UIWebView .
效果如下:
$ grep -r UIWebView .
Binary file ./proj.ios/wechatSDK/libWeChatSDK.a matches
Binary file ./proj.ios/ThreeCards.xcodeproj/project.xcworkspace/xcuserdata/kktoo.xcuserdatad/UserInterfaceState.xcuserstate matches
0029
~/Library/Developer/Xcode/DerivedData/
0028、
layer 渲染不全有留白
AVPlayerLayer
? ? ? ? layer.videoGravity = AVLayerVideoGravityResize;
0027、
移除添加的子layer
//? ? self.kkAddVideoBtn.layer.sublayers = nil;//這個方法會崩潰
只能添加時保存在數組中,然后調用這個方法
? ? [self.kkVideoLayerArr makeObjectsPerformSelector:@selector(removeFromSuperlayer)];
0026、
? ? ? ? NSRange range = [kkdata.content rangeOfString:@"@" options:NSBackwardsSearch];
//? ? ? ? NSString *kk = [kkdata.content substringToIndex:range.location];//截取指定字符串之前的字符
//截取指定字符串之后的字符
? ? ? ? NSString *kkContent = [kkdata.content substringFromIndex:range.location + 1];
0025、
/// 添加四邊陰影效果
// 陰影顏色
theView.layer.shadowColor = theColor.CGColor;
// 陰影偏移,默認(0, -3)
theView.layer.shadowOffset = CGSizeMake(0,0);
// 陰影透明度,默認0
theView.layer.shadowOpacity = 0.5;
// 陰影半徑,默認3
theView.layer.shadowRadius = 5;
0024、
我們可以通過一下方法,可以把工程中所有的字體打印出來,包括我們手動導入的第三方字體;
for(NSString *fontfamilyname in [UIFont familyNames])
{
? ? NSLog(@"family:'%@'",fontfamilyname);
? ? for(NSString *fontName in [UIFont fontNamesForFamilyName:fontfamilyname])
? ? {
? ? ? ? NSLog(@"\tfont:'%@'",fontName);
? ? }
? ? NSLog(@"-------------");
}
蘋方提供了六個字重,font-family 定義如下:
蘋方-簡 常規體
font-family: PingFangSC-Regular, sans-serif;
蘋方-簡 極細體
font-family: PingFangSC-Ultralight, sans-serif;
蘋方-簡 細體
font-family: PingFangSC-Light, sans-serif;
蘋方-簡 纖細體
font-family: PingFangSC-Thin, sans-serif;
蘋方-簡 中黑體
font-family: PingFangSC-Medium, sans-serif;
蘋方-簡 中粗體
font-family: PingFangSC-Semibold, sans-serif;
0023、
禁止交互
? ? [[UIApplication sharedApplication] beginIgnoringInteractionEvents];
? ? [[UIApplication sharedApplication] endIgnoringInteractionEvents];? //啟用交互
0022、
Invalid App Store Icon. The App Store Icon in the asset catalog in xxxx.app can't be transparent nor contain an alpha channel.
根據錯誤提示, AppIcon 圖標包含了透明度,才導致了包的上傳失敗. 后面我查看了AppIcon中添加的圖片, 發現有一張1024 x 1024@1x的圖標帶有alpha透明度.
解決辦法:
1.用系統自帶的"預覽"軟件打開圖標;
2.菜單欄文件->導出;
3.將alpha的選項的勾去掉;
4.將新導出的圖片添加到Xcode,再打包上傳即可.
0021、
CUICatalog: Invalid asset name supplied: '(null)'
簡明扼要,XCode打印這個對程序沒什么影響,
Xcode打印的這個提示是[UIImage imageNamed:@""]這個方法傳入的照片名字為空,是無效資源名稱,全局搜索imageNamed:看到有傳空的自己替換一下就可以了,當然你也是可以不替換的。
0020
2020-04-17 13:15:24.279220+0800 [999:430633] *** -[JPUSHReachability retain]: message sent to deallocated instance 0x283ea7720
-[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x1e08dfc30
0019、
? ? ? ? cell.selectionStyle = UIAccessibilityTraitNone;
? ? ? ? cell.backgroundColor = KKWhiteColor;
tableView的選中狀態或顏色
0018、
繪制邊框
? ? ? ? cell.imgRight.layer.borderColor =[UIColor colorWithHexString:@"#E11D5E"].CGColor;
? ? ? ? cell.imgRight.layer.borderWidth = 1;
0017、
最新的庫3.2.0 JPGCDExtensions.m 訪問了私有API _dispatch_benchmark.
把版本回退到3.1.1就行了
We identified one or more issues with a recent delivery for your app, "" 1.0 (2). Please correct the following issues, then upload again.
ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/JPVideoPlayer.framework/JPVideoPlayer: _dispatch_benchmark. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/
0016、透明度問題
? ? kkOnLinePersonBtn.backgroundColor = [KKBlackTitleLabColor colorWithAlphaComponent:0.2];//設置父視圖透明而子視圖不受影響
? ? ? ? bgView.backgroundColor = [[UIColor colorWithHexString:@"1A1A1A "] colorWithAlphaComponent:0.4];? ? ? ?
0015、
一般情況下報masonry約束錯誤,可能是設置約束之前,子控件沒有添加到父視圖上。
0014
1、多層視圖嵌套事件沖突問題,
底層視圖A scrollview,添加了子視圖B collectionviewview,視圖B 的headerview又添加了視圖C,視圖C又添加了多個子視圖D,在視圖D中需要添加滾動視圖E collectionview,當我把視圖E添加至視圖D中時發現其點擊事件和滾動事件都無法響應了,
1、分析,以為是和底層視圖A沖突了,排查了一遍發現不是,又懷疑是視圖D無法響應事件或是其他父視圖問題,排查后發現又不是
2、當我把視圖E添加至C視圖時,響應了一下,之后就不行了,懷疑是所添加的父視圖的問題,然后又是一陣排查,發現添加到了C視圖也不行,又懷疑是創建E視圖的代碼問題,排查一遍又寫了個demo,發現不是這個問題
3、當我更改E視圖的frame時發現,有時能響應事件,有時不能,然后就懷疑是設置的frame問題,可能是masonry布局導致的,排查過一遍后,發現不是這個問題,
4、排查問題的過程中發現設置E視圖位置靠上的時候能響應事件,反之則不能,然后懷疑還是父視圖的問題,重新查看視圖層級,排查每個父視圖的情況,然后發現視圖C的高度小于視圖E的frame,也就是說父視圖沒有完全包裹住子視圖,部分子視圖超出了父視圖的frame坐標,原來如此,最終原因找到了,我在控制器內設置視圖B的headerview的高度,以為這樣就相當于同時設置了視圖C 的高度,排查中發現,控制器內初始化C視圖時給了他一個高度,只設置視圖B header的高度是不夠的。真是氣煞我也。問題終于解決了,所有代碼都沒問題,其實只需要將視圖C和視圖Bheader的高度設置一下就行了。
0013
+[_LSDefaults sharedInstance]: unrecognized selector sent to class 0x1f809fd58
0012
使用xcode的時候突然給不出錯誤提示了,只是 Indexing | Processing files,重啟xcode或關機依然沒有效果
解決方法:
在 ~/Library/Developer/Xcode/DerivedData 目錄下刪除所有的內容,然后重啟xcode,提示就有了
0011
Type 'enum DDLogLevel' has incompatible definitions in different translation units
Reference to 'DDLogFlagError' is ambiguous
解決方案:
build > setting
enable module 改為No?
這種解決方式不太贊成,
0010
騰訊 Bugly的問題,更新他好像就好了
2019-12-26 09:38:56.642098+0800 六道Peter[34165:12101291] [Bugly]? Trapped uncaught exception 'NSInvalidArgumentException', reason: '+[_LSDefaults sharedInstance]: unrecognized selector sent to class 0x1f809fd58'
0009/
以下為mas_equalTo的源碼:
#define mas_equalTo(...) equalTo(MASBoxValue((VA_ARGS)))
mas_equalTo()是對equalTo()的宏定義,主要是對equalTo傳入的參數進行類型轉換,可以讓其支持基本數據類型
以下為equalTo的源碼:
- (MASConstraint * (^)(id))equalTo {
return ^id(id attribute) {
return self.equalToWithRelation(attribute, NSLayoutRelationEqual);
};
}
通過equalTo的源碼可以看出equalTo算是一個get方法,其返回值為block類型,block中的有一個參數類型為id,當我們執行equalTo方法時,需要為其傳入id類型的參數,所以equalTo不能傳入基本數據類型,但可以包裝為NSNumber類型傳入
make.height.equalTo(@100);?
總結: mas_equalTo和equalTo實際上是對布局的效果一樣的,只是各自類型不同
0008、
????獲取設備的UUID(被蘋果禁用的是UDID)來標示設備。當軟件第一次安裝時候,獲取設備的UUID 存儲到keychain中,那么只要你不刷機,那么這個保存在keychain中的UUID一直存在,即使你升級操作系統也會存在(我正好升級試了一下),這樣我們就能保證設備編碼的唯一性。參考如下網址:
0007、
在 iOS 9 之后,不需要再在 dealloc 方法中去移除通過 addObserver:selector:name:object: 方法注冊的通知的監聽。 但是通過 addObserverForName:object:queue:usingBlock: 這個方法注冊的通知仍然需要手動移除。
0006
iOS lb: framework not found Pods_XXX___ 的解決辦法
解決方法:
1.項目藍色圖標->Targets->General->Linked Frameworks and Libraries
2.刪除 Pods_XXX___.frameworks
0005
c Xcode has incompatible definitions in different translations units
解決方案:
build > setting
enable module 改為No?
不能用這個方法,會出問題,別的庫就不行了
最后發現
0004、調試接口出現了很多問題,后臺說返回的是json,但我接收到的卻是二進制數據流,以前好像也有這種情況,但后臺都會進行改善,將數據進行編碼返回前端可以識別的數組和字典格式的數據。
? 現在只好自己解析了,
? ? ? ? ? ? ? ? NSString *jsonstr = [[NSString alloc]initWithData:responseObject encoding:NSUTF8StringEncoding];
? ? ? ? ? ? ? ? NSRegularExpression *expression = [NSRegularExpression regularExpressionWithPattern:@"sataeCode" options:0 error:nil];
? ? ? ? ? ? ? ? if (expression) {
? ? ? ? ? ? ? ? ? ? NSTextCheckingResult *result = [expression firstMatchInString:jsonstr options:0 range:NSMakeRange(0, jsonstr.length)];
? ? ? ? ? ? ? ? ? ? if (!result) {
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? NSData *jsondata = [jsonstr dataUsingEncoding:NSUTF8StringEncoding];
? ? ? ? ? ? ? ? NSDictionary *jsondic = [NSJSONSerialization JSONObjectWithData:jsondata options:NSJSONReadingMutableContainers error:nil];
003、
今天一早升級了Xcode10 結果一打開項目直接閉門停了。
報錯內容如下:
--------------------------------------------------------------
Showing Recent Messages
:-1: Multiple commands produce '/Users/apple/Library/Developer/Xcode/DerivedData/spor-alxyeeddbojurrdoaxniuovitgdw/Build/Products/Debug-iphoneos/spor.app/Info.plist':
1) Target 'spor' (project 'spor) has copy command from '/Users/apple/Downloads/NoAppNoPush/spor/External/Masonry/Info.plist' to '/Users/apple/Library/Developer/Xcode/DerivedData/spor-alxyeeddbojurrdoaxniuovitgdw/Build/Products/Debug-iphoneos/spor.app/Info.plist'
2) Target 'spor' (project 'spor') has process command with output '/Users/apple/Library/Developer/Xcode/DerivedData/spor-alxyeeddbojurrdoaxniuovitgdw/Build/Products/Debug-iphoneos/spor.app/Info.plist'
---------------------
解決方案:
選擇 xcode -> File -> Project Seetongs.... -> Shared Project Seetings: -> Build System -> Legacy Build System ->Done
001
The run destination xxx? iPhone is not valid for Running the scheme 'shoppingBaby’.
xxx 的 iPhone doesn’t support any of shoppingBaby.app’s architectures. You can add xxx 的 iPhone’s arm64e architecture to shoppingBaby.app’s Architectures build setting.
unsupported? architecture
是因為 Xcode版本和手機版本不支持, 我Xcode用的9.4? 手機是ios 12, 升級Xcode就行了,或是添加手機支持文件, 但是我添加后不管用, 不知道什么情況
002
ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen."
字面意思來看,是果爹砍了iPhone4系列之后,仍舊需要開發者們適配iPhone5系列(os:如果庫克不是為了賣SE他會保留5系手機?)
廢話不多說了,其實這個問題只需要在Asset的LaunchImage的右側勾選iOS7 and Later的portrait選項,那么LaunchImage就會多出兩個需要插入啟動圖的位置(2x和Retina 4)
我這里只添加了Retina 4的尺寸圖,也就是640x1136大小,clean一下重新打包即可
0003、 Masonry.h file not found
找不到頭文件,這種情況是文件鏈接發生混亂,或是重復添加了文件,也可能是項目內已經把鏈接刪了,但本地文件還在,
配置文件里是不需要加特殊的指定鏈接的,
0002、的 iPhone has denied the launch request.
iOS -- Could not launch "xx" ,xx iPhone has denied the launch request
xcode,在真機上運行項目的時候,提示這個iOS -- Could not launch "xx" ,xx iPhone has denied the launch request。
我在網上看了一下,網上說的,都沒有解決我的問題,然后看到一篇文章說的,他是切換了debug模式就好了。我也試了一試,發現還是不行,但是在切換debug和release模式那里,我發現了下方有個勾(Debug executable)。
然后我把它給取消了,發現就能運行了,不過斷點卻不走了,但是為什么這樣還不知道。好吧,記上一筆。
我自己分析了一下原因,也不知道是不是這樣,因為之前要添加一個UDID到賬號里,添加進去之后由于沒有找到Xcode的自動更新證書在哪,我就手動下載證書導入了,就把自動證書給取消了,
把自動證書勾上就行了
010
No signing certificate "iOS Development" found: No "iOS Development" signing
:-1: No account for team "T86X98NCU2". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials. (in target 'TZImagePickerControllerFramework')
查找全局:"T86X98NCU2" ,然后修改,把證書改為自己的即可!
騰訊云短視頻錄制
009、 [User Defaults] Attempt to set a non-property-list object (
? ? ? [common savepersoncontroller:listArr];//崩了
原因:dic 是服務器返回的數據 數據里邊有"",而NSUserDefaults是不能被成功解析并存入的,所有在存入之前需要將里邊的""改成""即可。
008、
2 duplicate symbols for architecture arm64
Xcode Build Settings中No Common Blocks配置項 改為NO
這個配置從XCode8開始被默認開啟,有時會導致"duplicate symbol for architecture xxx" 錯誤,那么這個配置項的含義是什么呢?
007、
后臺返回(long)1 類型的,怎么解析??
轉成string類型即可
? ? ? ? NSString *kklikesStr =? [NSString stringWithFormat:@"%@",[[infoDic valueForKey:@"nums"] stringValue]];
006、
解決-[__NSCFNumber length]: unrecognized selector sent to instance xxxxx 的錯誤
這個錯誤是解析從服務器請求的參數 @”carLossFee”數據類型為double類型,而在使用時直接賦值給NSString類型變量,沒有進行轉化。所以報了以上錯誤;
005
可能是Github問題,或是緩存什么的問題, 多試幾次就行了,
[!] Error installing QCloudCore
[!] /usr/bin/git clone https://github.com/tencentyun/qcloud-sdk-ios.git /var/folders/vh/tv38_gxj0kb7ptnx9g4vszgh0000gn/T/d20200311-16152-qbr975 --template= --single-branch --depth 1 --branch 5.7.1
Cloning into '/var/folders/vh/tv38_gxj0kb7ptnx9g4vszgh0000gn/T/d20200311-16152-qbr975'...
fatal: unable to access 'https://github.com/tencentyun/qcloud-sdk-ios.git/': Failed to connect to github.com port 443: Operation timed out
004、
0002、的 iPhone has denied the launch request.
003、
Could not successfully update network info during initialization.
這種情況一般會出現在使用第三方庫的時候,例如使用環信SDK, 歷史版本里面有一版在編譯之前,需要將里面的虛擬機加到包里。
這并不是一個統一的解決的辦法,要根據事實情況去找辦法了。
這個沒法解決,基本上是你用的第三方庫,有的只打包了真機運行的庫,沒有打模擬器的
002、
You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
需要配置一下 UIBackgroundModes ,把那個勾打上就行了。
001、iPad 上不顯示圖標logo,是因為加了這個選項
003、刪除Xcode多余證書
~/Library/MobileDevice/Provisioning Profiles
002/
xcode 緩存文件
~/Library/Developer/Xcode/DerivedData
這個文件夾中保存的是Xcode的緩存文件,曾經在Xcode跑過的所有項目的索引、build的信息等都會保存在這里。刪除后在下次打開項目編譯的時候將會重新生成。由于這里包含了大量已經沒用的項目的信息又懶得去篩選,于是把整個文件夾刪了。
~/Library/Developer/Xcode/iOS DeviceSupport/
每次把一個設備接入電腦進行真機調試之前,電腦會對設備建立索引,也在此文件夾下生成對該設備系統的支持文件。于是這里存在了一堆對舊版本iOS設備支持的文件。而我最近基本只對iOS9.3的設備進行真機調試。于是刪除了所有低于9.3的文件夾。
~/Library/Developer/Xcode/Archives/
每次打包App的dSYM等數據就保存在這里,把一些沒用的版本刪了。如果是上線了的版本還是保留吧。
~/Library/Developer/Xcode/Products/
~/Library/Developer/CoreSimulator/Devices/
每個文件夾里包含的就是一個特定系統版本的設備的數據。每個文件夾對應哪個設備可以在其下device.plist中查看。
~/Library/Developer/XCPGDevices/
這里保存了playground的項目緩存。
001
獲取當前線程用@%打印
[NSThread currentThread]
APP圖標:
20、29、 ?40 、60 的2x 3x圖 ?一張1024*1024px
啟動圖: 啟動圖尺寸必須嚴格切圖,分辨率不對會導致app上下有黑邊
640 *960
640*1136
750 *1334
1242 *2208
1125 *2436
1242 *2688
40 *40? 60*60
58*58? ? 87*87
80*80? 120*120
120*120 180*180
最后一張1024*1024
蘋方字體怎么會有PingFang SC、PingFang TC、PingFang HK三種呢?對應的是蘋方-簡、蘋方-繁、蘋方-港,而且都有六種字重,具體可以在字體冊中查看。
// 蘋方字體,默認為PingFangSC-Regular
UIFont *font = [UIFont fontWithName:@"PingFangSC-Regular" size:14];
0007、
蘋果證書文件
~/Library/MobileDevice/Provisioning Profiles
0006
真機測試只能用development證書,和描述文件,不能用adhot或者distribute
006/
Build Active Architecture Only : 是否只編譯當前適用的指令集,release必須為NO
Valid Architectures: 將要編譯的指令集
arm64 : 必選項,支持iphone5s及以上;最低支持版本:iOS5.1.1
armv7s:支持iPhone5及以上;
armv7:支持iPhone4及以上;
以上指令集,選擇越多,打出來的包就越大;
若拋棄iPhone5s之前的機型,只需要選擇arm64即可,這個包是最小的。
若要支持所有iPhone機型,選擇armv7、arm64即可。
若想app在各個機器上運行效率最高:
1. Build Active Architecture Only改為NO;
2.選擇armv7 armv7s arm64指令集;
這樣會為各個指令集編譯相應的代碼,但包的體積是最大的。
0005
最近在Xcode添加了許多證書,每次運行時看到多余的證書 就會很煩。所以就想能不能去刪除多余的證書。然后找到了解決方案。
在finder 中前往文件夾中輸入 ~/Library/MobileDevice/Provisioning Profiles
0004、
UI給到尺寸如何計算結論:pt = px * 72 / DPI。
pt: iOS中的字號單位,1pt = 1/72 英寸。
px: 美工給的字體像素大小
DPI : 每英寸的像素數
0003、2019.1.5?
Mac 突然就打不開蘋果開發者中心了,還有很多其他網站如12306等等,找來找去發現是停用了JavaScript的原因。
0002、的 iPhone has denied the launch request.
0001、模擬器截屏
選擇zoom最大屏幕,然后command +S? 保存截圖