Skip to content

acton393/WeexOCExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeexOCExample

You must replace file in WeexSample/lib/WeexSDK.framework and then WeexSample project can run correctly

How to get WeexSDK.framework

recommend you to compile from Weex source here,so that you can get the new feature, and can build your own Weex SDK after modifying

  • clone Weex project
    you can use SSH

     git clone git@github.com:alibaba/weex.git
    

    or use https

     git clone https://github.com/alibaba/weex.git
    
  • open WeexSDK.xcodeproj in weex/ios/sdk
    switch target just below
    img

  • Build this project or use the xcode default hot key ⌘ + b

  • Finally you can find Products directory in weex/ios/sdk, WeexSDK.framework was here

    img

Integrate to your Objective-C project

  • Import the framework you get above and import system framework img
  • Add SocketRocket:copy here SRWebSocket.h/m to your own Project (if cocoaPods is used in your project,add pod 'SocketRocket' to Podfie )
  • Add SDWebImage here dependency to your project
  • Add main.js(which is in the WeexSDK.framework) to your main bundle img

important

add -ObjC to your project build settings,just like this

img

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published