2

I am trying to send my app for review to facebook. I am following this link but i am stuck at the section of

Build the Simulator Package

I am setting this in console:

xcodebuild -arch i386 -sdk iphonesimulator8.1

And i am getting the next error:

clang: error: no such file or directory: '/Project/SDWebImage-3.7.1/build/Release-iphonesimulator/libSDWebImage.a'

I have been searching an it seems like a problem of architecture, here it is how i have muy tarjet build settings: enter image description here

Any idea why the command xcodebuild can't find the libSDWebImage.a? By the way, i am using xCode 6.1.1 and my app runs perfect on iPhone devices or simulator.

Fernando Santiago
  • 2,128
  • 10
  • 44
  • 75

2 Answers2

0

By any one facing this problem, the solution is in this 2 steps: 1) Add static library 2) Add i386

Community
  • 1
  • 1
Fernando Santiago
  • 2,128
  • 10
  • 44
  • 75
  • Fernando, you might be onto something here, but this 1 liner is not descriptive and can be confusing for some. You might get more up-votes if you write out a few more details. – Matthew Ferguson Mar 26 '17 at 21:41
0

I also encountered the same problem while building an app for Facebook review. In my case the problem was: ld was searching subproject.a files in $PROJECT_DIR/build directory while in fact they where in $PROJECT_DIR/project_name/subproject_folder/build folder. I don't know how to fix it properly (any suggestions appreciated) so just did a soft link with ln.

The fun thing is: I don't have i386 architecture in settings, but it builds for i386 anyway.

Alexander Vasenin
  • 11,437
  • 4
  • 42
  • 70