Hi, I've followed the walkthrough for converting an objective-c framework and everything goes fine until I get to the part where you need to create the fat binary. Running the makefile in the solution directory just gives me an error: libSideMenuSDK.a: No such file or directory. So I copied the .a file I created in my XCode project over from where it is created over to the same directory. Got the same error. Then I specified the path to the .a file in the makefile and I get: make: ./libSideMenuSDK.a: Permission denied. I'm running the makefile from the same directory as the xcodeproj file.
Here is my makefile code:
XBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
PROJECT_ROOT=.
PROJECT=$(PROJECT_ROOT)/SideMenu.xcodeproj
TARGET=SideMenu
all:
./libSideMenuSDK.a
libSideMenu-i386.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphonesimulator/lib$(TARGET).a $@
libSideMenu-armv7.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@
libSideMenuSDK.a:
libSideMenu-i386.a libSideMenu-armv7.a
xcrun -sdk iphoneos lipo -create -output $@ $^
clean:
-rm -f *.a *.dll
Here's what my file structure looks like:
SideMenu
SideMenu
SideMenu.h
SideMenu.m
SideMenu.xcodeproj
libSideMenuSDK.a
makefile
Any help would be appreciated. Thanks.