Error running Tapku demo project - calendar

I'm try to run TapKu iOS demo project downloaded from:
https://github.com/devinross/tapkulibrary/branches
I build without errors but when it comes to be installed on the simulator, I get this error message:
[AppDelegate_iPhone window]: unrecognized selector sent to instance 0x9b7ad90
2012-12-03 17:05:13.478 unviersaldemo[94132:13d03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate_iPhone window]: unrecognized selector sent to instance 0x9b7ad90'
*** First throw call stack:
(0x1a44012 0x1429e7e 0x1acf4bd 0x143d7ea 0x1a33cf9 0x1a3394e 0x3da78 0x2bcc 0x4807b7 0x480da7 0x481fab 0x493315 0x49424b 0x485cf8 0x237fdf9 0x237fad0 0x19b9bf5 0x19b9962 0x19eabb6 0x19e9f44 0x19e9e1b 0x4817da 0x48365c 0x2b36 0x2925 0x1)
libc++abi.dylib: terminate called throwing an exception
(lldb)
Any idea?

I just added:
#interface AppDelegate_iPhone : TKAppDelegate <UIApplicationDelegate> {
UIWindow *window;
}
#property (nonatomic, retain) UIWindow *window;
in the AppDelegate_iPhone.h file
and
#synthesize window;
in the AppDelegate_iPhone.m file.
Works for me.

Related

Apple Store product subscribe error with An unknown error occurred

I add an SKU as an auto-renewable subscription on App Store Connect. I have codes below in the main class.
public static final String SKU_TW_1_YEAR="com.visionx.tw.subscribe.1year.2";
Purchas iap = Purchase.getInAppPurchase();
// Define a receipt loader
iap.setReceiptStore(createReceiptStore());
iap.subscribe(SKU_TW_1_YEAR);
#Override
public void itemPurchaseError(String sku, String errorMessage) {
ToastBar.showErrorMessage("!subscribe_failure:"+errorMessage);
}
The callback procedure itemPurchaseError is called with an error message:
An unknown error occurred
Are there any procedures I can follow to check the settings of App Store connect or debug for solving this problem?
I have a screenshot of the SKU setting on App store connect for checking.
I run my App on my iPhone 7 through Xcode for subscribing my pdoduct. The console on Xcode shows messages below.
2022-07-17 13:33:41.976707+0800 VisionClass[8023:356071] Reachability Flag Status: -R t------ networkStatusForFlags 2022-07-17 13:34:55.142646+0800 VisionClass[8023:355757] SKPaymentTransactionStatePurchasing 2022-07-17 13:34:56.593077+0800 VisionClass[8023:356563] <SKPaymentQueue: 0x281cecd00>: Payment completed with error: Error Domain=ASDServerErrorDomain Code=3502 "This item is not available." UserInfo={NSLocalizedDescription=This item is not available.} 2022-07-17 13:34:56.597138+0800 VisionClass[8023:355757] Transaction error Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x288dc2c10 {Error Domain=ASDServerErrorDomain Code=3502 "This item is not available." UserInfo={NSLocalizedDescription=This item is not available.}}}
According to the error messages on the console, I add the bank account and tax information. I can subscribe to my product now.
Thank you.

Facebook native SDK conflicts with Parse4CN1 on Android

I'm currently having some trouble with an issue that was previously fixed through a build hint some time ago as you can see in the following thread:
https://groups.google.com/forum/#!searchin/codenameone-discussions/parse4cn1%7Csort:date/codenameone-discussions/4xipU9Sy5rY/IbX1YMmGBQAJ
I'm still keeping the build hint android.excludeBolts=true as well as the facebook.appId build hint set to my app id, but it now fails with the following error:
2019-03-19 00:35:44.832 9571-9571/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.guarumo.ego, PID: 9571
java.lang.NoClassDefFoundError: Failed resolution of: Lbolts/AppLinks;
at com.facebook.appevents.internal.SourceApplicationInfo$Factory.create(SourceApplicationInfo.java:131)
at com.facebook.appevents.internal.ActivityLifecycleTracker.onActivityCreated(ActivityLifecycleTracker.java:155)
at com.facebook.appevents.internal.ActivityLifecycleTracker$1.onActivityCreated(ActivityLifecycleTracker.java:101)
at android.app.Application.dispatchActivityCreated(Application.java:208)
at android.app.Activity.onCreate(Activity.java:1110)
at com.codename1.impl.android.CodenameOneActivity.onCreate(CodenameOneActivity.java:306)
at com.guarumo.ego.EgoStub.onCreate(EgoStub.java:53)
at android.app.Activity.performCreate(Activity.java:7383)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3256)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "bolts.AppLinks" on path: DexPathList[[zip file "/data/app/com.guarumo.ego-nsZJW8Y8XXNjxF5pwA3RMQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.guarumo.ego-nsZJW8Y8XXNjxF5pwA3RMQ==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.facebook.appevents.internal.SourceApplicationInfo$Factory.create(SourceApplicationInfo.java:131)
at com.facebook.appevents.internal.ActivityLifecycleTracker.onActivityCreated(ActivityLifecycleTracker.java:155)
at com.facebook.appevents.internal.ActivityLifecycleTracker$1.onActivityCreated(ActivityLifecycleTracker.java:101)
at android.app.Application.dispatchActivityCreated(Application.java:208)
at android.app.Activity.onCreate(Activity.java:1110)
at com.codename1.impl.android.CodenameOneActivity.onCreate(CodenameOneActivity.java:306)
at com.guarumo.ego.EgoStub.onCreate(EgoStub.java:53)
at android.app.Activity.performCreate(Activity.java:7383)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3256)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
On the other hand, if I set the android.excludeBolts build hint to false I get the problem presented on the previously mentioned thread:
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AggregateException;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AndroidExecutors;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AndroidExecutors$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AndroidExecutors$UIThreadExecutor;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/BoltsExecutors;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/BoltsExecutors$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/BoltsExecutors$ImmediateExecutor;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/CancellationToken;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/CancellationTokenRegistration;
Dex: Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Translation has been interrupted
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
at com.android.dx.command.dexer.Main.runDx(Main.java:291)
at com.android.dx.command.dexer.Main.main(Main.java:247)
at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
... 4 more
:transformClassesWithDexForRelease FAILED
:transformClassesWithDexForRelease (Thread[Daemon worker,5,main]) completed. Took 22.043 secs.
I think this might be being caused by the change to a newer version of the Facebook SDK, but couldn't confirm it. Could you please help me out with this problem?
Thanks in advance.
I'm guessing this relates to the second answer in this question. This was caused because of this fix. As a temporary workaround you can probably set the SDK to the older/deprecated facebook SDK with the build hint: android.facebookSdkVersion=4.7.0.
To property fix this problem (if that answer is indeed correct) you will need to add parse bolts to the build hints:
android.gradleDep=compile 'com.parse.bolts:bolts-tasks:1.4.0'; compile 'com.parse.bolts:bolts-applinks:1.4.0';

RESTEasy - Stacktrace in logs when throwing WebApplicationException

I am using Resteasy 2.3.3, bundled with JBoss-AS-7.1.3. I'm trying to
throw a new WebAppliationException, and the output (to the client) seems
fine, but I'm left with an unwanted stack trace in my log. I have a few
other Exceptions mapped, and I was wondering if the mapping was somehow
causing an issue ­ trying to wrap this Exception.
Simple example:
public class SimpleService {
#GET
#Path("stuff")
public String getStuff(final #QueryParam("param1") String param1,
#QueryParam("param2") String param2) throws ActionException {
if (param1==null && param2==null) {
throw new WebApplicationException();
}
I get the following exception:
[WARN] org.jboss.resteasy.core.SynchronousDispatcher#error - failed to execute: javax.ws.rs.WebApplicationException
Any ideas what this error might mean? How I could get rid of the messages?
I stumbled across another class in the javadoc - NoLogWebApplicationException, and it says:
WebApplicationExceptions are logged by RESTEasy. Use this exception
when you don't want your exception logged
https://docs.jboss.org/resteasy/docs/2.3.3.Final/javadocs/org/jboss/resteasy/spi/NoLogWebApplicationException.html

Facebook iOS SDK and iOS6

I'm currently trying to use the Facebook SDK official pod in its 3.14.1 version (also tried 3.9, same result) but I stumble upon an issue.
Here is my code:
self->_session = [[FBSession alloc] initWithAppID:[[self class] facebookAppId]
permissions:self.mandatoryPermissions
urlSchemeSuffix:nil
tokenCacheStrategy:[FBSessionTokenCachingStrategy defaultInstance]];
[self->_session openWithBehavior:FBSessionLoginBehaviorWithFallbackToWebView
completionHandler:^(FBSession *session,
FBSessionState state,
NSError *error)
{
[self sessionStateChanged:session
state:state
error:error];
}];
This is greatly inspired from code samples given by facebook : https://developers.facebook.com/docs/facebook-login/ios/v2.0 # Step 1b: Open the session using the custom class
Here is the issue :
dyld: lazy symbol binding failed: Symbol not found: _OSAtomicDecrement32
Referenced from: /var/mobile/Applications/01DD5CE2-39A9-40AE-A8FC-170F7387D434/Dubb.app/Dubb
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _OSAtomicDecrement32
Referenced from: /var/mobile/Applications/01DD5CE2-39A9-40AE-A8FC-170F7387D434/Dubb.app/Dubb
Expected in: /usr/lib/libSystem.B.dylib
By looking at their SDK code I can't see fallbacks for the OSAtomicDecrement32 in case it doesn't exist, and it in fact exists sstarting with iOS 7.1.
Any advice?
Thanks
I actually understood what happened here after having the same issue on iOS7.0.
The call OSAtomicIncrement32 is defined as its own function on iOS >= 7.1, but it is also defined as an inline call to other functions for iOS < 7.1.
The right definition is used depending on the min deployment target, which for me was set to '7.1' in my podfile. Changing it to:
platform :ios, '7.0'
fixed the issue!
I deleted and then re-installed my pods.
Then I had to change one #import statement from:
#import <FacebookSDK/Facebook.h>
to
#import <FacebookSDK/FacebookSDK.h>
Rebuilt everything, and it worked.

CocoaLibSpotify crashes the app immediately after Login. NSURL Extensions seem to be missing?

I'm building a new spottily app using cocoaLibSpotify.
Immediately after instantiating the session with initializeSharedSessionWithApplicationKey, I call attemptLoginWithUserName with a valid username/password pair.
The app then immediately crashes with
+[NSURL urlWithSpotifyLink:]: unrecognized selector sent to class 0x23e826c
2014-01-23 14:05:09.476 MercuryDockAssistant[44744:3f03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSURL urlWithSpotifyLink:]: unrecognized selector sent to class 0x23e826c'
*** First throw call stack:
(0x22c2012 0x20e7e7e 0x234d2ad 0x22b1bbc 0x22b194e 0x44196 0x43d46 0x35aac 0x4398c 0x3305c 0x2e50d 0x2281920 0x2244d31 0x2268724 0x2267f44 0x2273f91 0x2e7d5 0xcd20d5 0xcd2034 0x2d0c5fb 0x2d0c485 0x2d11cf2)
libc++abi.dylib: terminate called throwing an exception
So it looks like the NSURL extensions are not being recognised. Any ideas?
Ensure you are importing the header wherever you are using spotify extensions like urlWithSpotifyLink:.
#import "CocoaLibSpotify.h"
Also, as mentioned in the CocoaLibSpotify readme, you need to add the -ObjC and -all_load flags to the "Other Linker Flags" build setting in Xcode.

Resources