Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Unable to generate libRDPDFLibSDK.a from make command in terminal. 3 years 5 months ago #15322

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Hi Team,
Below is the error which i am getting while generating the library from terminal

fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: libRDPDFLib-i386.a and libRDPDFLib-arm64.a have the same architectures (arm64) and can't be in the same fat output file
make: *** [libRDPDFLibSDK.a] Error 1

Note : I don't want to use the latest library because the one which i am woking i have already made lots of changes into the library so kindly recommend me good solution as i have some urgent releases.

Please Log in or Create an account to join the conversation.

Last edit: by apdeveloper.

Unable to generate libRDPDFLibSDK.a from make command in terminal. 3 years 5 months ago #15324

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Hi Team,

Can you please update me as soon as possible.

Please Log in or Create an account to join the conversation.

Unable to generate libRDPDFLibSDK.a from make command in terminal. 3 years 5 months ago #15325

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Dear apdeveloper,
Could you please tell us which demo's version have you started from?

Please Log in or Create an account to join the conversation.

Unable to generate libRDPDFLibSDK.a from make command in terminal. 3 years 5 months ago #15326

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
It is Version 1.0

Please Log in or Create an account to join the conversation.

Unable to generate libRDPDFLibSDK.a from make command in terminal. 3 years 5 months ago #15327

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Dear apdeveloper,
I suggest you to exclude arm64 architecture in Release.
Select the project or target -> Build Settings -> Excluded Architecture and add in Release "arm64".

Please Log in or Create an account to join the conversation.

Unable to generate libRDPDFLibSDK.a from make command in terminal. 3 years 5 months ago #15328

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Hi Team,
This is my make file which i am using to make lib

XBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
PROJECT_ROOT=./RadaeeLib
PROJECT=$(PROJECT_ROOT)/RadaeeLib.xcodeproj
TARGET=RadaeeLib

all: libRDPDFLibSDK.a

libRDPDFLib-i386.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphonesimulator/lib$(TARGET).a $@

libRDPDFLib-armv7.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@
//Note : If i remove this arm64 does our app will work on all iphone and ipad
libRDPDFLib-arm64.a:
$(XBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch arm64 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@
//Till here
libRDPDFLibSDK.a: libRDPDFLib-i386.a libRDPDFLib-armv7.a libRDPDFLib-arm64.a
xcrun -sdk iphoneos lipo -create -output $@ $^

clean:
-rm -f *.a *.dll

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum