i've a nativescript (2.4.0) project with platform ios and android with this plugin to use onesignal push notifications.
Android works perfectly but not Ios. When i try to build ios i receive these messages:
app/main.ts(9,30): error TS2304: Cannot find name 'UIResponder'.
app/main.ts(9,53): error TS2304: Cannot find name 'UIApplicationDelegate'.
app/main.ts(11,40): error TS2304: Cannot find name 'UIApplicationDelegate'.
app/main.ts(13,63): error TS2304: Cannot find name 'UIApplication'.
app/main.ts(13,93): error TS2304: Cannot find name 'NSDictionary'.
Thanks for your support.
Related
I am trying to implement login with facebook in my Flutter app. It seems the library to do so is https://pub.dev/packages/flutter_facebook_auth/install .
I followed all the installation instructions - and I am able to correctly run the app in the iPhone simulator. I am unable to run the app on my own device. The XCode build completes successfully, i.e. flutter build ios works but flutter run -d XXXXXXXX-XXXXXXXXXXXXXXXX (device ID snipped) fails with a lot of errors, here is some of the output of flutter run (see below).
How do I get this to run on my device?
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:58:52: error: reference to 'FBSDKSettings' is ambiguous
settings:(id<FBSDKSettings>)settings
^
In file included from /Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:34:
In file included from /Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSettings+SettingsProtocols.h:22:
/Users/imrigoldberg/Documents/flytrex/shopper/build/ios/Debug-iphoneos/FBSDKCoreKit/FBSDKCoreKit.framework/PrivateHeaders/FBSDKSettingsProtocol.h:23:11: note: candidate found by name lookup is 'FBSDKSettings'
#protocol FBSDKSettings
^
In file included from /Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:31:
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettingsProtocol.h:23:11: note: candidate found by name lookup is 'FBSDKSettings'
#protocol FBSDKSettings
^
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:58:52: error: type argument 'FBSDKSettings' must be a pointer (requires a '*')
settings:(id<FBSDKSettings>)settings
^
*
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:58:49: error: type arguments cannot be applied to non-class type 'id'
settings:(id<FBSDKSettings>)settings
^ ~~~~~~~~~~~~~~~
2 warnings and 14 errors generated.
We are developing a smartphone app with React-Native.
It worked fine until last week, but suddenly I couldn't even build it from around the day before yesterday, and now I get the following error:
/PRJDIR/node_modules/#react-native-firebase/messaging/ios/RNFBMessaging/RNFBMessagingSerializer.m:34:40: expected a type
+ (NSDictionary *)remoteMessageToDict:(FIRMessagingRemoteMessage *)remoteMessage {
/PRJDIR/node_modules/#react-native-firebase/messaging/ios/RNFBMessaging/RNFBMessagingSerializer.m:35:58: property 'appData' not found on object of type '__strong id'
return [self remoteMessageUserInfoToDict:remoteMessage.appData];
/PRJDIR/node_modules/#react-native-firebase/messaging/ios/RNFBMessaging/RNFBMessagingModule.m:295:29: no visible #interface for 'FIRMessaging' declares the selector 'sendMessage:to:withMessageID:timeToLive:'
[[FIRMessaging messaging] sendMessage:data to:to withMessageID:messageId timeToLive:[ttl intValue]];
^
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening PRJ.xcworkspace. Run CLI with --verbose flag for more details.
The development environment is as follows.
iOS14.4(Simulator iPhone12)
react:16.9.0
react-native:0.61.5
#react-native-firebase/messaging:7.4.2
XCode:12.4 (12D4e)
node.js:12.3.1
I have tried the following.
#react-native-firebase/messagingを7.9.2へアップグレード
キャッシュ削除
node_modulesとpackage-lock.jsonの削除、npm install
PodsとPodfile.lockの削除、pod install
I've been worried for about 3 days, but I haven't been able to solve it ...
If you know the solution, please let me know.
what is #react-native-firebase/app version?
If package react-native-firebase/messaging is 7.4.2 version, I think the package react-native-firebase/app version be 8.2.0 version. You may try this version.
Getting this error on the deployment of nodejs project:
Type Error --------------------------------------------- TypeError: Cannot read property 'pipesCount' of undefined at ReadStream.Readable.pipe (_stream_readable.js:637:13) at Readable. (/opt/atlassian/pipelines/agent/build/node_modules/lazystream/lib/lazystream.js:33:12) at Readable.instance (/opt/atlassian/pipelines/agent/build/node_modules/lazystream/lib/lazystream.js:18:14) at Readable.read (/opt/atlassian/pipelines/agent/build/node_modules/readable-stream/lib/stream_readable.js:443:10) at resume (/opt/atlassian/pipelines/agent/build/node_modules/readable-stream/lib/_stream_readable.js:790:12) at processTicksAndRejections (internal/process/task_queues.js:84:21)
It's from the bitbucket site. Suddenly coming from last day.strong text
I got the following error when trying to build for iOS:
com.unarin.cordova.beacon/CDVLocationManager.m:49:30: error: property
'allowsBackgroundLocationUpdates' not found on object of type
'CLLocationManager *'
self.locationManager.allowsBackgroundLocationUpdates = YES;
when i try to build for iOs this com.unarin.cordova.beacon plugin pops this error and build fails.
Adding a new Test target to my existing project in Xcode 5.0.2 (XCTest) does not work although it succeeds when compiling the Test Target.
I've already searched here but without success.
Extra info:
This is an iOS app
Deployment Target is 7.0
It's using two sub-Projects(static library) with resource bundle
Here's the error message:
2014-03-19 11:31:06.509 MyProject[53196:70b] Error loading /Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest/MyProjectTests: dlopen(/Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest/MyProjectTests, 262): no suitable image found. Did find:
/Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest/MyProjectTests: mach-o, but wrong architecture
IDEBundleInjection.c: Error loading bundle '/Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest'
How can I fix this error?
Any help is greatly appreciated.