I'm using Accelerate.framework to get some informations,
It works fine on iOS Device, but occurred error when I using Simulator,
Use of unresolved identifier vDSP_vsq
Anyone can help ?
it looks like an issue of swift accelerate.framework
it works when I using the method on Objective-C class, then call it by bridging-header
Related
So I have been working on an IOS app built-in unity3d. When I try and push the app to
my iPhone in Xcode I receive a "Use of undeclared identifier 'CreateTextureFromCVTextureCache' when
doing the build.
The full code snippet is in the link below:
https://drive.google.com/file/d/1ZDb0pbHCfI8zmroe9F34Pk_EIt2C585S/view?usp=sharing
I hope you can help.
'CreateTextureFromCVTextureCache' is deprecated in Metal API, use 'CreateBGRA32TextureFromCVTextureCache' instead.
After further investigation I noticed that the CreateTextureFromCVTextureCache class is deprecated for Metal graphics api. Hope This help others.
We have an app that is working properly with the UserNotification.framework being linked as required framework in Xcode 9. Everything works smooth here.
Now we are switching to Xcode 10. But there linking this framework as required leads to
dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
Referenced from: /var/containers/Bundle/Application/1D41BD68-9B88-4D5D-B7AB-0D1C31979964/App.app/App
Reason: image not found
If I switch it to optional push notification (via Intercom) won't work anymore.
What is the reason? How can we fix that? Why is it even working in Xcode 9?
Update #1
using
#import UserNotification
does not fix it
Update #2
Its fixed by importing and using it actually (in AppDelegate.m) like this
UNNotificationRequest* unr = [UNNotificationRequest alloc];
unr = nil;
Why?
It is related to the same issue I have experienced already.
CABTMidiCentralViewController used in Storyboard only working if using code reference
Update #3
More generic question
Xcode sometimes removes linked library
UserNotification SDK is available on iOS 10+, Try to update the deployment Target to iOS 10 +
Can your please try removing the framework and adding that again ? I just created a new project this framework added in Xcode 10 and was able to run in the device without any errors.
I couldn't find any related topic so I am starting the new one.
I have macOS Sierra and latest xcode 8.
When I attach my iPhone to macbook and try to build even clean project in xcode I get following swift compiler errors:
Attempting to use the forward class 'UIViewController' as superclass of 'UIActivityViewController'
Attempting to use the forward class 'UIViewController' as superclass of 'UIAlertController'
And so on. Error count is 21 and is always same no matter what project I choose.
Someone have same problem? Any solution?
Thanks for any answer.
First time seeing this error, can't i put '!' after 'as' in swift?
Or just bug after updating my Xcode to 6.2?
let url = notification.userInfo![CallbackNotification.optionsURLKey] as! NSURL
It shows error :
Expected type after 'as'
P.S: You can try download OAuthSwift from github to test this error.
https://github.com/dongri/OAuthSwift
The as! notation was not introduced until Xcode 6.3. You have Xcode 6.2, so you have to say simple as. Xcode 6.2 does not understand your as!; that is the cause of the compiler error you are getting.
(Note that if you take those ! away, then when you eventually switch to Xcode 6.3 you have will have to bring them all back again! It really is best not to change Xcode versions backwards and forwards like this. If your code was written originally with Xcode 6.3, you should stay with Xcode 6.3. The only problem is that in that case you cannot submit an app to the App Store until it goes final; right now it is still in beta.)
You don't have to add ! to as to unwrap your optional variable in XCode 6.2
I am using Crashlytics framework!!
my app is working fine but some reason it always gives me error
"crashlytics use of undeclared identifier"
[Crashlytics startWithAPIKey:#"**************************"];
Can anyone let me know what could be possible problem?
MY app is running fine even xcode shows error!