How to create an Appcelerator Titanium iOS module module that requires CocoaPods module

I would like to create my own iOS module which requires CocoaPods pod ( https://cocoapods.org/pods/NearbyMessages ).

I created a new module using the Titanium command line interface:

ti create --type=module --platforms=ios ...

I followed the instructions from CocoaPods ( https://guides.cocoapods.org/using/using-cocoapods.html ) to create a subfile:

platform :ios, '9.0'

target 'MyModule' do
  pod 'NearbyMessages'
end

I put the podfile in the "iphone" directory of my iOS modules directory:

MyModule
 - LICENCE
 - README
 - assets
 - documentation
 - example
 - iphone
   - Podfile
   - ...
   - timodule.xml
   - titanium.xcconfig   

I installed the module using the following command:

pod install

I opened Xcode with the newly created * .xcworkspace file and added the following line to the end of the titanium.xcconfig file:

#include "Pods/Target Support Files/Pods-MyModule/Pods-MyModule.debug.xcconfig"

But, unfortunately, this leads to several errors, for example:

  • "' Ti.Module.h "
  • " , "

, Pods, .

-, , , XCode NearMessages iOS?

!

+4
1

build.py , . build_module -workspace - xcodebuild. :

rc = os.system("xcodebuild -workspace %s.xcworkspace -scheme %s -sdk iphoneos -configuration Release" %(manifest['name'],manifest['name']))

rc = os.system("xcodebuild -workspace %s.xcworkspace -scheme %s -sdk iphonesimulator -configuration Release" %(manifest['name'],manifest['name']))

python build.py .

, , , , , .

+2

All Articles