库更新 2022/6/21
安装Alamofire 5.6.1(之前为5.4.3),安装AppAuth 1.5.0(之前为1.4.0),安装FBSDKCoreKit 9.3.0(之前为11.0.1),安装FBSDKLoginKit 9.3.0(之前为11.0.1),安装FBSDKShareKit 9.3.0(之前为11.0.1),安装Firebase 9.1.0(之前为8.3.0),安装FirebaseAnalytics 9.1.0(之前为8.3.0),安装FirebaseAuth 9.1.0(之前为8.3.0),安装FirebaseCore 9.1.0(之前为8.3.0),安装FirebaseCoreDiagnostics 9.1.0(之前为8.3.0),安装FirebaseCoreInternal 9.1.0,安装FirebaseCrashlytics 9.1.0(之前为8.3.0),安装FirebaseDynamicLinks 9.1.0(之前为8.3.0),安装FirebaseInstallations 9.1.0(之前为8.3.0),安装FirebaseMessaging 9.1.0(之前为8.3.0)
场景转换
创建SceneDelegate,从AppDelegate中删除相关window代码,在Info.plist中添加UIApplicationSceneManifest部分
添加Google Ads
在 AppDelegate 中实现 DevilSdkGoogleAdsDelegate 协议
@property(nonatomic, strong) GADInterstitialAd interstitial; @property (nonatomic, retain) GADRewardedAd rewardedAd;
[DevilSdk sharedInstance].devilSdkGoogleAdsDelegate = self; [[DevilSdk sharedInstance] addCustomJevil:[JevilAds class]];;
-(void)loadAds:(id)params complete:(void (^)(id res))callback -(void)showAds:(id)params complete:(void (^)(id res))callback
奇怪的错误
错误 ITMS-90206: "无效的包。在'devil.app/Frameworks/devilcore.framework'中的包包含不允许的文件'Frameworks'。" 把 devilcore 目标的 Build Setting 中的 Embed 搜索 Always Embed Swift Standard Libraries 从 YES 变更为 NO -> NO 。https://stackoverflow.com/questions/25777958/validation-error-invalid-bundle-the-bundle-at-contains-disallowed-file-fr?lq=1
ios 16 xcode 14 编译错误
修改 Pod file Podfile platform :ios, '16.0'
重新安装 pod pod deintegrate pod install
关于卡卡奥相关的错误,请修改 pod 'KakaoSDKCommon', '2.11.3' # 包含必需元素的基础模块 pod 'KakaoSDKAuth', '2.11.3' # 用户认证 pod 'KakaoSDKUser', '2.11.3' # 卡卡奥登录,用户管理 pod 'KakaoSDKTalk', '2.11.3' # 朋友,消息(卡卡奥talk) pod 'KakaoSDKStory', '2.11.3' # 卡卡奥故事 参考 https://devtalk.kakao.com/t/swift5-7-xcode14-beta3/124083/12
修改 Facebook SDK 的 team sigin
NFC TAG ndef read troubleshooting
https://stackoverflow.com/questions/56453525/missing-required-entitlement-for-nfctagreadersession put it in the info plist com.apple.developer.nfc.readersession.iso7816.select-identifiers D2760000850101 com.apple.developer.nfc.readersession.felica.systemcodes 12FC