문제

나는 작업에 추가하는 응용 프로그램은 내용.

나는 수신 productsRequest:didReceiveResponse 방법,그리고 받을 배열 제품을 제공합니다.

내 문제가 발생한 경우 추가 SKPaymentSKPaymentQueue.후 추가 제품을 큐에 paymentQueue:updatedTransactions 방법 거래서 항상 상태 SKPaymentTransactionStateFailed.

I NSLog 은"트랜잭션이 있습니다.오류"이것은 무엇을 반환합니다.류 Domain=SKErrorDomain Code=0UserInfo=0x165000 에 접속할 수 없습니다" iTunes Store"

내가 로그아웃 스토어에서 앱을 설정하지만,노력 후 제품을 구매하는 내 응용 프로그램에서 그것은 결코 요청을 로그에 내 계정 테스트.그냥에 실패와 함께 위에 오류가 있습니다.

도움이 되었습니까?

해결책

I assume you've done the standard sanity checks: double-checking your code, confirming your product IDs, comparing your code to the In-App Purchase Programming Guide, etc.

This may be ridiculous, but -- if you're certain your code is correct -- do a hard reset (full wipe) of your iPod (Settings => General => Reset => Erase All Content and Settings). I puzzled over this exact problem for hours -- it turned out my code was correct and the hard reset was the solution.

다른 팁

I was getting SKPaymentTransactionStateFailed error code 0 "Cannot connect to iTunes Store" and thanks to thomax for this answer my problem is solved. Turns out you MUST enter a build number under Targets->Summary.

I spent the last 24 hours resetting my phone, screwing with iTunes connect, and doing just about everything i could think of before i stumbled upon this solution.

SKPaymentTransactionStateFailed code 0 Cannot connect to iTunes Store

SKPaymentTransactionStateFailed code 0 Cannot connect to iTunes Store

나는 "버그"를 발견했다고 생각합니다.

나는 시간이 아닌 데이트에만 관심이 있으므로, 날짜를 저장하면 detelement 에서이 값을 취하십시오 : "DateElement.DateValue.Date"

나중에, 날짜를 편집하려고 할 때 "2012-03-18 00:00:00"에 대한 날짜 요소에 할당됩니다. 그 가치를 되돌릴 때 CET에서 UTC에서 UTC로 변환되었습니다. 이는 이전 날짜를 얻는 것을 의미합니다. - (

그래서 나는 현지 시간으로 되돌아 가야한다

This error (i.e. "Error! Cannot connect to iTunes Store") can occur if you do a sandboxed In App purchase but are signed in using your normal Apple account.

I find it helps avoid any confusion if I sign out of my Apple account before doing any In App purchases. Then in the "Sign In" dialog choose the "Use Existing Apple ID" option and enter your Test User details.

Just remember this will be set in your Settings so you will need to sign out after you've finished In App purchases.

Also, using a different Apple ID resets various iTunes-related settings such as iTunes Match.

You can check if the following link is working or timing out:

https://sandbox.itunes.apple.com/verifyReceipt

Alternatively, an unscientific but quite reliable way to check if the sandbox is working is to ask at:

https://devforums.apple.com/community/ios/connected/purchase

If the sandbox is down, there will probably be people already talking about it, like now (18 Jan 2012, 6:40pm UTC time).

I also was facing with the same error. I figured out, that the Error only comes on the Simulator, when I switched to the device debugging, the error didn't appear.

jQuery Caret Plugin을 사용할 수 있습니다

http://examplet.buss.hk/download/download.PHP? 플러그인= CARET.1.01

참고 :이 문자를 편집하고 삭제하십시오.

replace funcition.(일치하는 패턴의 인덱스를 사용하지만 아무것도 대체하지 않음)

$("#myText").bind("keyup", function(e){
     var text = $(this).val();
     var caret = $(this).caret().start;

     if(text && text.length > 0){
        text.replace(/\$.*?\$/g, function(m, n){
           if(caret > n && caret < (n + m.length)){
              alert("BOOM");
           }
        });
     }
});
.

demo : http://jsfiddle.net/xqxxb/

방법을 보여주는 방법.당신은 이것을 향상시킬 수 있습니다.

사용

$("#myText").bind("keyup keydown change", function(e){ ...
. 더 나은 결과를 얻으려면

Hit with the same problem, i reset my device, cross verified the identifiers, re-installed the app. Also thought the problem was, because I had changed the reference and the description of the products. In reality, I feel it is because my test user had got locked as multiple people where using the same account, and it is a possibility that the password validation failed multiple times. So I re-created another test user and in-app purchasing is back to working. Hope this helps. I was totally stumped with this error.

나는이 버그를 격리하려고 하루를 보냈고, 마침내 그것을 못 박았습니다.

Xcode 4.3.1의 코드 서명자는 앱 스토어에 대한 유효성을 검증하거나 부모 디렉토리와 동일한 이름을 가진 번들에 하위 디렉토리가있을 때마다 ADHOC 배포를 저장하거나 ADHOC 배포를 저장합니다.

예 :

test/test/file.x -- FAIL
test/test2/file.x -- WORKS
.

이것은 Xcode 4.3.1에서 새로운 것으로 보이고, 희망적으로 곧 수정 될 것입니다.

업데이트 : Apple DTS 지원에서 문제를 확인하고 묶음의 디렉토리의 이름을 바꾸는 것 이외의 해결 방법이 아직 없음을 알고 있음을 나타냅니다. UGH

Even a full restore did not resolve this problem for me.

After calling addPayment for an auto-renewing product identifier, about one second passed before I received the "SKErrorDomain Code=0" error from StoreKit. At no point was I prompted (as Apple's documentation suggests one should be) for an iTunes Store username and password; the transaction simply failed.

To resolve this, I had to add a fake "consumable" product to iTunes Connect and call addPayment using the fake consumable's product identifier. This caused the iTunes Store dialog to come up. I then logged in with a test account I had created in iTunes Connect. This succeeded: my application was notified that the consumable had been purchased.

After having done this, I was able to call addPayment with my auto-renewing product identifier and purchase the subscription normally.

QStringList static recentFiles;
.

그것은 단지 선언입니다.소스 파일에서 정적 변수를 정의해야합니다.

QStringList MainWindow::recentFiles;
.

이유를 이해하지 못하면 이유를 이해하지 못하면 이 FAQ 항목 .

I thought it worth mentioning that DonnaLea's solution of only logging in when prompted for payment also worked for the same issue with Unity and Prime31's StoreKit plugin. Attempting to log in via the same settings menu you use to log out will prompt for all manner of billing\address details which seems to permanently "break" that test account.

I found myself in this situation when I was working on adding in-app purchases and didn't do it exactly right the first time. In my case I had an error in server-side PHP and as a result I think I wasn't getting all the way through to "finishTransaction:". Even after I fixed the problems (I put the program on a separate device and purchased successfully), I kept getting "You've already purchased this, click to download" followed by "Cannot connect to iTunes Store".

I finally got it to stop doing that by launching the game from Springboard (not XCode). It immediately processed the transaction successfully and stopped prompting me to redownload.

이것은 기본적으로 동시 선형 방정식의 시스템 시스템입니다. 가우시안 제거 를 사용하여 해결할 수 있습니다.

매트릭스 "Division"에 대해서는 "Nofollow"> 역 매트릭스 입니다.즉 와 같은 -1 을 행렬로

AA -1 = a -1 a= i

여기서는 Identity Matrix 입니다.A가 거꾸로되면 * C= B는 C= A -1 b와 동일합니다.

I had had the same problem, first of all I haven't created test account so I created via getting help from this link https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SettingUpUserAccounts.html#//apple_ref/doc/uid/TP40011225-CH25-SW10

Then You need to sign out from your current account on your device. and buy purchasing it will ask for user account, then enter the test account.

나는 이와 동일한 문제입니다.나는 이전에 만들어 테스트의 사용자 계정을 로그아웃의 아이튠즈를 기대하시기 위해서는 내가 테스트의 사용자 계정을 만들었을 때 응용 프로그램입니다.대신 내가 가지고 연결할 수 없습니다 itunes store 메시지입니다.나는 때에 서명과 내 진짜 아이튠즈 사용자명/암호를 시도했 나 테스트 응용 프로그램 그것은 완벽하게 작동했습니다.내가 다음에서 로그아웃 itunes store 다시 내 응용 프로그램 일인지 묻는 내 id/pw

I had the same error, but the problem was not exactly the same. Maybe usefull for someone:

I inserted an external file in the structure of my app. The reason why I did this is because in production, I insert this file dinamicaly from a server, but in development I thought it was faster to use an app called iExplorer to paste this file. I have done this is the past and I didn't have this problem. But in the last few days, if I paste this file directly using iExplorer, my app returns the error: "Cannot connect to iTunes Store". (in spanish: "No puede conectarse a iTunes Store").

I think that it is because this time I inserted the file inside the .app folder. So this makes me think that if you modify your .app folder in any way, the Codesignature breaks and the link with the iTunes Store stops working directly.

For me, the problem was fixed by uploading a binary. Since that answer was not given in this page, which seems to be among the top hits in Google, I thought I'd add it.

nslog는 악마 프로세스를 시작할 때 표준 IO 소켓이나 파일 핸들이 연결되어 있지 않아 작동하지 않습니다.특별히 할당되어야합니다.적절한 데몬을 만드는 방법과 콘솔과 syslog를 작성하는 방법에 대한 좋은 자원은 Dalrymple & Hillecas의 "Advanced Mac OS X 프로그래밍 (20 장)에서 제공됩니다.

그들은 당신이 강조하는 IO 문제를 해결하는 스켈레톤 프로그램을 정의합니다.나는 잠시 전에 그것을 읽는 것을 기억하고 언젠가 필요할 것입니다.저자는 openlog () 및 syslog ()를 사용하여 syslog.h lib를 사용하여 간단한 통신을 위해 샘플을 보여줍니다.또한 파일과 심지어 소켓 (서버용 등)과 통신을위한 다른 낮은 수준의 방법을 보여줍니다.

나는 누군가가 뭔가를 언급하는 것이 아니라 무엇인가를하는 방법을 말할 수있을 때 항상 감사합니다. 그러나이 경우 나는 내가 할 수있는 최선의 최선입니다.행운을 빕니다.

Check if you are signed into your personal itunes account in the appstore. If you are you will receive this message. Even if you are signed into your sandbox account in the app. So, to resolve this issue sign out of your personal account in the app store and then try to purchase your in-app item and then use your sandbox account. This resolved my issue.

Well, as usual I "tried all solutions available and it didn't help" :) So, here is my input to this unlimited collection of stumble stones:

If application is not currently on sale (at any reason), this error occurs.

I got the same error, When I called SKProductsRequest's start method in my test env, It ran in - (void)request:(SKRequest *)request didFailWithError:(NSError *)error

When I called in my production env, It's correct and ran in - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response

Close charles or any http proxy software asap! Close charles or any http proxy software asap! Close charles or any http proxy software asap!

You know it~

I had had the same problem, but I solved by the following mode:
- I was using iPhone 5S emulator with iOS 8.4 (This is the most important. Apple Store connection is not working on iOS 11 emulator)
- on emulator I turned on the following setting: Settings/Developer/Allow HTTP services (This is for internet connection)
- temporarily I turned off Avast antivirus Web Shield (This is for internet connection too)

The In-App Purchase FAQ has this information:

Cannot connect to iTunes Store

The "Cannot connect to iTunes Store" issue may be due to one or more of the following reasons:

  • The sandbox may be unreachable.
  • Your app does not have a bundle version (CFBundleVersion). See Setting the Version Number and Build String for more information.
  • Your app is running in the Simulator, which does not support in-app purchase.
  • You are attempting to purchase a product that is unavailable for sale. See Query the App Store for product information before presenting your app’s store UI for more information.

In my case, the error occurred because I was using the simulator.

Even in the In-App Purchase Programming Guide says to use the development iOS device has a suggested testing step.

As Apple's Documentation:

Cannot connect to iTunes Store The "Cannot connect to iTunes Store" issue may be due to one or more of the following reasons:

  1. The sandbox may be unreachable.
  2. Your app does not have a bundle version (CFBundleVersion). See Setting the Version Number and Build String for more information.
  3. Your app is running in the Simulator, which does not support in-app purchase.
  4. You are attempting to purchase a product that is unavailable for sale. See Query the App Store for product information before presenting your app’s store UI for more information.

https://developer.apple.com/library/content/technotes/tn2413/_index.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top