Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Makefile error creating fat binary file for iOS binding project

$
0
0

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.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>