레이블이 cordova ios인 게시물을 표시합니다. 모든 게시물 표시
레이블이 cordova ios인 게시물을 표시합니다. 모든 게시물 표시

2016년 7월 19일 화요일

Cordova, Xcode Error code 65 for command

Cordova iOS 버전 업그레이드 도중에 에러가 발생.

에러 환경은
- MacBook El capitan
- Cordova 6.2.0
- Corova iOS 4.1.1

에러코드는 아래와 같았습니다.

xcodebuild: error: The project '킹콩로켓56.xcodeproj' does not contain a target named '킹콩로켓56'.
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/pineoc/Desktop/kingkong_project/cordova/kingkongRocket/platforms/ios/cordova/build-debug.xcconfig,-project,킹콩로켓56.xcodeproj,ARCHS=i386,-target,킹콩로켓56,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/pineoc/Desktop/kingkong_project/cordova/kingkongRocket/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/pineoc/Desktop/kingkong_project/cordova/kingkongRocket/platforms/ios/build/sharedpch

원인해결을 위해서 검색해봤지만
- 프로비저닝 파일 문제
- Xcode 문제
- ios-deploy 문제

모두 아니었습니다.

문제는 한글이름.

config.xml에 있는 앱 이름을 한글로 설정하고 진행하면 에러가 납니다.


이에 대한 해결방법은
1. 에러가 났을 경우, 일단 iOS 쪽을 삭제한다.
$cordova platform rm ios


2. config.xml에 있는 앱 이름을 영어로 바꾼후 iOS 다시 설치
$cordova platform add ios

3. 그리고 빌드해줍니다.
$cordova build ios



빌드 성공!

4. (추가적으로) 앱이름을 한글로 하시고 싶다면
우선 영어로 platform add ios, build 해주시고
그다음에 한글로 바꾸는걸 추천드립니다.

Happy Coding!

2016년 3월 29일 화요일

Cordova iOS screen not full

Cordova iOS screen not full problem


                    Error screen                              Fix error screen                

It occurred because of that Splash Screen file size not matched.
error occurred screen file - Width x Height = 640 x 1134
fix error screen file - Width x Height = 640 x 1136

If not fullscreen on iOS,
you should check splash file.

2016년 3월 15일 화요일

Cordova Facebook Plugin iOS error


Use Cordova + Facebook plugin occur error on my project

Error under xcode:
/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m:27:44: No visible@interface for 'CDVPlugin' declares the selector 'initWithWebView:'

My project system versions
- Cordova 6.0.0
- Cordova iOS 4.0.1
- Cordova android 5.1.1
- phonegap-facebook-plugin 0.12.0

In this problem,
I search on google with this string.
error: no visible @interface for 'CDVPlugin' declares the selector 'initWithWebView:'

And result,
https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1227

This problem can fix use this fork plugin project.
https://github.com/Telerik-Verified-Plugins/Facebook

$git clone https://github.com/Telerik-Verified-Plugins/Facebook.git
$cordova -d plugin add ./Facebook --variable APP_ID="yourappid" --variable APP_NAME="yourappname"
$cordova build ios

** BUILD SUCCEEDED **

Fix error complete!

2016년 2월 29일 월요일

Cordova iOS BackupWebStorage


When i publish to apple,

I was rejected by this reason

Apple의 메시지
  • 2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected
2.23 Details

On launch and content download, your app stores 11.39MB on the user's iCloud, which does not comply with the iOS Data Storage Guidelines.

Next Steps

Please verify that only the content that the user creates using your app, e.g., documents, new files, edits, etc. is backed up by iCloud as required by the iOS Data Storage Guidelines. Also, check that any temporary files used by your app are only stored in the /tmp directory; please remember to remove or delete the files stored in this location when it is determined they are no longer needed.

Data that can be recreated but must persist for proper functioning of your app - or because users expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCRUFLIsExcludedFromBackupKey attribute.

Resources

To check how much data your app is storing:

    - Install and launch your app
    - Go to Settings > iCloud > Storage > Manage Storage
    - Select your device
    - If necessary, tap "Show all apps"
    - Check your app's storage

For additional information on preventing files from being backed up to iCloud and iTunes, see Technical Q&A 1719: How do I prevent files from being backed up to iCloud and iTunes.

If you have difficulty reproducing a reported issue, please try testing the workflow described in Technical Q&A QA1764: How to reproduce bugs reported against App Store submissions.

If you have code-level questions after utilizing the above resources, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
- complete details of your rejection issue(s)
- screenshots
- steps to reproduce the issue(s)
symbolicated crash logs - if your issue results in a crash log

In this message,

I check the config.xml file on project folder.
<preference name="BackupWebStorage" value="local" />

I guess this config preference option not working iCloud disable.

Change the option to.
<preference name="BackupWebStorage" value="none" />

In this time, waiting for review.
It work OR reject.


=========================================================
In my case,
I use cordova-plugin-file-transfer download path that "cdvfile://localhost/persistent/"
So, i change path to cordova.file.dataDirectory.

And i use imgcache.js lib.
https://github.com/chrisben/imgcache.js

in this lib,
iOS iCloud backup problem can fix
https://github.com/chrisben/imgcache.js/issues/73#issuecomment-54437775

This means that change the ImgCache.options.localCacheFolder
to cordova.file.dataDirectory

But i didn't this solution.
because i use android also.

Please no reject! Apple!

JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...