我的Makefile是通過以下和它給錯誤的make文件:指定無法創建iOS的靜態庫。一個使用make命令
沒有目標,沒有生成文件中。停止。
XBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
PROJECT_ROOT=/Users/AshrafMac/Desktop/iOSSDK/
PROJECT=$(PROJECT_ROOT)/InfColorPicker.xcodeproj
TARGET=/Users/AshrafMac/Desktop/iOSSDK/
all: libInfColorPickerSDK.a
libInfColorPicker-i386.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphonesimulator/lib$(TARGET).a [email protected]
libInfColorPicker-armv7.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a [email protected]
libInfColorPickerSDK.a: libInfColorPicker-i386.a libInfColorPicker-armv7.a
xcrun -sdk iphoneos lipo -create -output [email protected] $^
clean:
-rm -f *.a *.dll
無法創建使用某文件作出命令的ios靜態庫。
嘿@Ashraf使用此linkhttps://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/walkthrough/#Installing_the_Xcode_Command_Line_Tools 我無法在我的xcode中獲取make文件。我可能會在那裏製作文件。? – ShreePool