javascript로 웹뷰와 통신중 json변환 및 확인 코드. 1234567 NSDictionary *test = [NSDictionary dictionaryWithObjectsAndKeys:@"userid",@"id",@"123456",@"pw", nil]; NSDictionary *test2 = [NSDictionary dictionaryWithObjectsAndKeys:test,@"login", nil]; NSError *error; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:test2 options:NSJSONWritingPrettyPrinted error:&error]; NSString *myString = [[NSString al..
error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's. 외장하드로 운영체제를 옴기고 xCode 셋팅하던중 발생한 오류이다. 했던 방법으로는 1. 인증서 교체.2. xocde > menu > preferences.. > Accounts > 아이디 삭제 및 재추가.3. 키체인 인증서에서 해당 인증서 신뢰 옵션 변경 "시스템 초기 설정 사용" -> "항상 신뢰"4. 재부팅 & xCode 재실행.5. project TARGETS > app > Embedded Binaries에서 해당..
Simulator build Error!!!! Error Mesage 1The request was denied by service delegate Simulator restart!! Error Mesage 2DTServiceHubClient failed to bless service hub for simulator iPhone X Simulator > Menu > Hardware > Erase All content And Settings... Clear!! 👍👍
javascript로 호출되는 문자열을 컨버팅하는 부분이 deprecated되어 수정.모든 NSCharacterSet을 이용해봤지만 답을 찾지 못했고...결국 열심히 검색한 stringByRemovingPercentEncoding 를 사용하면 된다는 답을 찾음!! [Code 1]// 기존 코드NSString *jsonString = [[[urlString componentsSeparatedByString:@"jscall:"] lastObject] stringByReplacingPercentEscapesUsingEncoding:NSStringEncodingConversionAllowLossy];NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEn..
아이폰 프로젝트에 Firebase의 Analytics 설치 시 오류. 우선 Firebase의 설치 가이드만 보고 쉽게 셋팅이 끝날거라 생각하면 오산이다. https://firebase.google.com/docs/analytics/ios/start?authuser=0 1. import는 @import Firebase;가 아닌 아래처럼 써야한다. #import 2. cocopods을 사용하지 않을경우 Firebase SDK를 받아 Analytics 폴더의 전체 Framework(총 7개)를 추가 해야한다. core와 analytics 프레임웍만 추가할 경우 nano... link오류가 40개 정도 발생할 것이다.sdk link : https://firebase.google.com/download/ios?a..
서버용 APNS 인증서 생성하기 PHP/JSP 맥 키보드 F4또는 응용프로그램 > 기타 폴더 > 키체인 접근 해당 앱의 인증서, 키 각각 선택 후 보내기! 명령어 입력 시 편의성을 위해 인증서는 cert, 키는 key로 파일명 지정.패스워드 추가는 서버와 규약에 따라 추가하거나 하지 않아도 됨.만들어진 cert.p12, key.p12파일이 위치한 곳에서 터미널 실행.터미널 실행 후 > cd desktop 실행 > 아래 명령어 입력. [터미널 인증서 갱신 명령어]openssl pkcs12 -clcerts -nokeys -out cert.pem -in cert.p12(패스워드 없을경우 엔터)openssl pkcs12 -nocerts -out key.pem -in key.p12(패스워드 없을경우 엔터, 맥 사..
iOS10 사진 접근권한 예외처리. - UIImagePickerController를 통해 사진 접근 시 Xcode8에서 빌드시 앱이 죽는 문제가 발생한다. - Photo Library 사용 시 권한이 없을경우 바로 시스템 설정으로 점프 하는 것 보다 상태값에 따라 점프 시점을 분기처리한다. 해결방법 1. info.plist에 Privacy - Photo Library Usage Description 옵션 추가 사진 접근 시 시스템 팝업에 표시 할 사용자 문구를 추가한다. 2. 사진 접근 시 권한이 있는지 확인한다. - 최초 권한 요청 시 시스템 얼럿이 발생하기 때문에 설정으로 강제이동 시키지 않는다. 123456789101112131415161718192021222324- (void)selectPhoto..
Xcode8 업데이트 이후 앱 build가 되지 않는다. Project > TARGETS -> Provisiong Profile(Deprecated) 가 눈에 보일 것이다.이것을 Automatic 으로 변경.Code Signing Identity 또한 Don't Code Sign으로 변경. iOS 개발자 페이지에서 iOS Provisioning Profiles 을 보면 대부분 인증서가 Invaild 된 것을 볼 수 있다.사용 할 것들은 다시 Edit해서 업데이트 해준다. 위 2가지를 모두 했지만 안된다... Project > TARGETS - General 탭에 새로운 메뉴가 생겼다.Signing!! 버튼만 한 번 눌러주면 된다... 해결 완료!
1. 아이폰 리뷰 신청 후 Rejected. 리젝 전문 Performance - 2.1 Thank you for your resubmission. However, your app failed to launch on iPhone running iOS 9.3.3 on Wi-Fi connected to an IPv6 network.. Specifically, when we selected the application on the Home screen, the app displayed a launch image then quit unexpectedly. This may be because iOS 9 uses a watchdog timer for applications; if an application takes..