I am trying to call some functions of the Main app from the Notification Extension in the IOS app. To minimize the code changes, I am trying to import Notification Extension in the main app itself but I am getting an Undefined Symbol error in the main app.
Related
I have submitted “reader” app to the app store and I have problem regarding to ExternalLinkAccount. After IOS 16 update apple requires to use open() method instead of creating custom modal component (https://developer.apple.com/documentation/storekit/externallinkaccount). So is there any way to call the open() method of the ExternalLinkAccount in React Native?
I have added all the required fields in the XCode and I have created the custom modal and it works for IOS 15 and below but now for IOS 16.
I want to use NotificationCenter inside a watchOS target. But I get the following error message when building the app at import NotificationCenter:
NotificationCenter is not available when building for watchOS Simulator.
Consider using `#if !os(watchOS)` to conditionally import this framework.
How do you handle this situation? Can I no longer use the simulator?
Ok, I mixed things up. All I want to do in my watchOs framework was something like this:
NotificationCenter.default.post(...)
The class with import NotificationCenter was in the wrong framework. No need for such a class in a watchOs framework. So my problem is fixed.
I have implemented siri extension to my app messages (siri kit iOS10) as shown in apple sample code
I implemented siri extension class to get number and message body from siri voice
this two parameters passing to my app source code
here Xcode showing linker command error
i didn't understand what i am missing in this code
When add this code to extension class it showing
error:[[UCSMSHandleManager sharedinstance] sendTextMessage:digits withMsg:message];
I've created a framework, and Im noticing that if I use the same framework within the watchkit and the main app, I recieve the following error messages.
objc[86669]: Class BasicHTTPServer_ObjC is implemented in both /Users/currentUser/Library/Developer/Xcode/DerivedData/myProj-egxerbveipszypdazxgpuyifbwcr/Build/Products/Debug-iphonesimulator/DataKit.framework/DataKit and /Users/currentUser/Library/Developer/CoreSimulator/Devices/F0661376-772D-4B5A-8427-0EF7A55326F2/data/Containers/Bundle/Application/05F0BD13-2736-4180-89E5-39CF64167218/myApp.app/PlugIns/MyApp WatchKit Extension.appex/nyApp WatchKit Extension. One of the two will be used. Which one is undefined.
This error is repeated also for other classes SocketServer_Objc, SSDPDB_ObjC, SSDPDBDevice_ObjC, MediaServer1ItemRes, TelephonyServer1Device, TelephonyClient1Device, SoapActionsMessaging1, SoapActionsMediaManagement1.
Currently, there is only a warning, and by looking at these kind of error messages I have encountered situations in which crashes occur over these kind of issues.
For a client I've developed an iOS + Android app using Cordova (PhoneGap) for the user interface. Now, as an update to this app, I'm am attempting to add a game that was written in Haxe. Originally the game was written for the Flash target, but I've updated it to work with the C++ targets for Android and iOS.
On Android it was easy to integrate this with the Cordova app using activities (the Haxe part runs as a separate activity), but I am having some trouble achieving a similar result on iOS.
So far I have tried to include all hxcpp generated code in my project (in the same way that NME sets up the XCode project when you do "nme build ios"), and I'm calling hxRunLibrary() from my code when I want the game to run.
The problem is that hxRunLibrary() seems to want to create its own UIApplication instance, which fails with the following error, since my main app is already running an instance:
*** Assertion failure in void UIApplicationInstantiateSingleton(Class)(), /SourceCache/UIKit_Sim/UIKit-2380.17/UIApplication.m:2037
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.'
I think it might have something to do with SDL, which Haxe uses for graphics. From what I understand SDL needs to run from the main function of the app, which created a conflict with Cocoa that also needs to run from the main function.
Is there any easy way around this? I've looked in the hxcpp sources, but been unable to find the UIApplication related code, or any entry code for SDL.
Perhaps someone could point me in the right direction. Thanks!
Well ,I have googled some information about Haxe . what i understood is that The Haxe will prouduce a completed application for you .that mean it include the main Function . That's why the error is happend .
And you can simulate the problem by invoke UIApplicationMain Function twice .
In my opinion , you have to remove the code about UIApplicationMain from the souce code file produced by Haxe.
cordova has the ability to be integrated as part of a bigger application
ran into the same issue.
http://devgirl.org/2012/11/15/embed-cordovaphonegap-in-your-native-ios-app/
this article will help
you dont actually create a new project instead you embed it in a webview via the ios webview and cordova acts a subview.