You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After seeing NativeScript at AngularConnect recently, I've been able to set aside a week to investigate how we can use it.
I am trying to get the Moodstocks iOS SDK working with NativeScript to bring image recognition into NS.
We believe the ios-metadata-generator is either not parsing the header files correctly or there is something that the library needs to. In both cases, it is frustrating that I cannot find any documentation relating to this issue.
Moodstocks is not an open-source project and is distributed as a .framework with a binary file and headers. With no practical knowledge of how native projects usually work, I have been discussing this with some native developers in our team to try and figure this out. This is what we have found:
Reproduction
We created a brand new iOS NativeScript project.
#shell
tns create ir && cd ir && tns platform add ios
Added these cocoapods:
#file ir/platform/ios/Podfile
platform :ios, '8.0'
use_frameworks!
pod 'AFNetworking'
pod 'Moodstocks-iOS-SDK', '~> 4.0'
#shell
pod install
The only statement that resolves without error is console.log(AFURLConnectionOperation);
I think this means that Moodstocks has not been picked up by the generator, whereas AFNetworking is.
We speculate it may have something to do with the structure of the frameworks. But this is pure speculation:
Any advice would be welcome, and we vastly appreciate the work so far! It would be good to have a document explaining how the ios-metadata-generator works, as android does.
The text was updated successfully, but these errors were encountered:
mattvot
changed the title
Moodstocks SDK support issue with ios-metadata-generator
ios-metadata-generator not picking up the Moodstocks Cocoapods library
Dec 1, 2015
Hi @mattvot,
I turns out that Moodstocks framework doesn't contain Modules/module.modulemap file which is needed for metadata generation process. To add the file manualy go to {your-app}/platforms/ios/Pods/Moodstocks-iOS-SDK/moodstocks-ios-sdk-4.1.6/Moodstocks.framework/, create Modules folder and create module.modulemap file in it with the following content:
This will do the trick, but the solution requires a manual changes in the platforms/ folder which is not recommended. Alternatively, I suggest wrapping the Modstocks framework in NativeScript plugin and using the plugin in your app. This way the module.modulemap file will be added only once in the plugin.
After seeing NativeScript at AngularConnect recently, I've been able to set aside a week to investigate how we can use it.
I am trying to get the Moodstocks iOS SDK working with NativeScript to bring image recognition into NS.
We believe the ios-metadata-generator is either not parsing the header files correctly or there is something that the library needs to. In both cases, it is frustrating that I cannot find any documentation relating to this issue.
Moodstocks is not an open-source project and is distributed as a .framework with a binary file and headers. With no practical knowledge of how native projects usually work, I have been discussing this with some native developers in our team to try and figure this out. This is what we have found:
Reproduction
Using tns version 1.5.0
The only statement that resolves without error is
console.log(AFURLConnectionOperation);
I think this means that Moodstocks has not been picked up by the generator, whereas AFNetworking is.
We speculate it may have something to do with the structure of the frameworks. But this is pure speculation:
Any advice would be welcome, and we vastly appreciate the work so far! It would be good to have a document explaining how the ios-metadata-generator works, as android does.
The text was updated successfully, but these errors were encountered: