發表於 程式分享

ionic 2 (from Visual Studio) build iphone/ipad遇到問題

1.Visual studio remote build出現VcTac System.IO.PathTooLongException
目前找到的解法就是於windows只支援248bytes的路徑名稱及260bytes的檔案名稱,
只好將Visual studio專案移至近根目錄

直接用XCode Debug遇到如下問題:
2.invalid GOOGLE_APP_ID in GoogleService-Info.plist or set in the customized options
GoogleService-Info.plist於ionic2 (in Visual Studio)是由https://console.firebase.google.com設定iOS應用程式後下載的,但build ios時不知何原因未正確copy,致專案未能執行,故再重新複製至
/Users/[macbook user name]/.taco_home/remote-builds/taco-remote/builds/720/cordovaApp/platforms/ios/[project name]/Resources

3.CDV plugin not exist
/Users/[macbook user name]/.taco_home/remote-builds/taco-remote/builds/720/cordovaApp/platforms/ios/[project name]/config.xml widget element新增

  <feature name="StatusBar">
 <param name="ios-package" value="CDVStatusBar" />
 <param name="onload" value="true" />
 </feature>
 <feature name="FCMPlugin">
 <param name="ios-package" value="FCMPlugin"/>
 </feature>
 <feature name="Device">
 <param name="ios-package" value="CDVDevice"/>
 </feature>
 <feature name="Console">
 <param name="ios-package" value="CDVLogger" />
 </feature>
 <feature name="BarcodeScanner">
 <param name="ios-package" value="CDVBarcodeScanner" />
 </feature>
 <feature name="SplashScreen">
 <param name="ios-package" value="CDVSplashScreen" />
 </feature>
 <feature name="Badge">
 <param name="ios-package" value="APPBadge"/>
 </feature>

發表留言