You must replace file in WeexSample/lib/WeexSDK.framework and then WeexSample project can run correctly
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 SSHgit 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
-
Build this project or use the xcode default hot key
⌘ + b
-
Finally you can find
Products
directory inweex/ios/sdk
,WeexSDK.framework
was here
- Import the framework you get above and import system framework
- Add
SocketRocket
:copy hereSRWebSocket.h/m
to your own Project (if cocoaPods is used in your project,addpod 'SocketRocket'
to Podfie ) - Add
SDWebImage
here dependency to your project - Add
main.js
(which is in theWeexSDK.framework
) to your main bundle
add -ObjC
to your project build settings,just like this