I am trying to debug iPhone apps on my jailbroken phone, and everything has gone well besides the step I am following here:
7. Open iPhoneCodeSign.xcspec.
For Xcode 4.3 the file is at: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/Resources/iPhoneCodeSign.xcspec
For Xcode 4.2 the file is at: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/Resources/iPhoneCodeSign.xcspec
For older versions the file is at: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin/Contents/Resources/iPhoneCodeSign.xcspec
I am having trouble finding the file (iPhoneCodeSign.xcspec). I am using Xcode 4.5.2, on Mountain Lion. I can find the directory at:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/
but I cannot find the Resource directory which is said to contain the Resources/iPhoneCodeSign.xcspec file. Where can this be found?
If they moved it, then my next question will be where is the CommandLine = "/usr/bin/codesign" stored?
Your file is in the directory.
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications/iPhoneCodeSign.xcspec
That guide is not suitable for iOS6 and XCode 4.5 since that file has been removed. In order to fake code signing on iOS6 refer to this answer.
Related
I am facing this error, i am done with research on that.
I conclude the result, i need one file for device support 10.2(14C92)
Please share that file.
GoTo:
Right click on Xcode 8 or Newer version of your Xcode, select "Show
Package Contents", "Contents", "Developer", "Platforms",
"iPhoneOS.Platform", "Device Support"
Copy the 10.2(14C92) folder (or above for later version).
I need that folder.
Thanks.
If somebody facing similar issue with Xcode 9.1
Open directory:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Create new folder "11.2 (15C107)" (or "10.3 (14E269)" for older versions, depends on what exactly are you missing)
Paste files from provided google drive folder
11.2 (15C107)
(or 10.3 (14E269) if you need older files)
Restart Xcode
For other iOS versions you may check #Sour LeangChhean 's answer
Keep in mind, that some day you will need to upgrade your Xcode anyway :)
I had the exactly same problem.
Just upgraded to xcode version 8.2.1 ( 8C1002 ) and the problem was solved.
Here I have this file for 10.3 or 11.3 or 11.4 into Xcode 8+.
You can download file from this link.
10.3:-
https://www.dropbox.com/s/i1f7q8w3vgr2ozl/10.3%20%2814E269%29.zip?dl=0
11.3:-
https://www.dropbox.com/s/wya3eu2j5db7tpt/11.3%20%2815E217%29.zip?dl=0
11.4:-
https://www.dropbox.com/s/86i9zjunpsy9b0b/11.4%20%2815F79%29.zip?dl=0
9 -> 12 All Files:
https://github.com/mendaparadarshit/xcode-9-ios-12-support
Steps:-
Download above Zip file and extract them.
Click on "Finder" in MAC OS, You can see in Topbar all menus, Click on "Go"
Click on "Go to Folder" ()
Paste this path over their (make sure that you have installed xcode with named : "Xcode.app")
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Paste your extracted "10.3 (14E269)" directory to that place.
quite Xcode and restart it. you can run your projects successfully in your real device.
Thank you,
Darshit
Here I have this file for 12.1 or 12.0 or 11.3 or 11.4 into Xcode 8+ or XCode 9+. You can download file from this link. 10.3:- https://www.dropbox.com/s/i1f7q8w3vgr2ozl/10.3%20%2814E269%29.zip?dl=0
11.3:- https://www.dropbox.com/s/wya3eu2j5db7tpt/11.3%20%2815E217%29.zip?dl=0
11.4:- https://www.dropbox.com/s/86i9zjunpsy9b0b/11.4%20%2815F79%29.zip?dl=0
12.0 & 12.1:- https://github.com/Yatko/iOS-device-support-files
Steps:-
Download above Zip file and extract them.
Click on "Finder" in MAC OS
Click on "Go to Folder"
Paste this path over their (make sure that you have installed xcode with named : "Xcode.app") /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Paste your extracted "10.3 (14E269)" directory to that place.
quite Xcode and restart it. you can run your projects successfully in your real device.
If you download the latest version after 12.1 then please upload that file and update the answer.
I downloaded the appropriate zip file from https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport for my devices version of iOS
Unzipped the contained folder to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
And finally restarted Xcode. No need to update Xcode it's self
Here is steps to build on device with iOS 10.3 and Xcode 8.2.1:
Open next directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Create new folder "10.3 (14E277)"
Copy files: DeveloperDiskImage.dmg, DeveloperDiskImage.dmg.signature FROM 10.2 (14C89) folder TO new 10.3 (14E277)
Restart Xcode
I solved the problem by updating Xcode.
However, for some strange reason the update was NOT shown in App Store under the Updates section. I had to manually search App Store for Xcode and select GET, then INSTALL. It installed a newer version, and problem was solved.
Not sure why Apple does this to developers ...
I have this problem, and I solved this by downloading the latest Xcode version.
you need update your xCode to the last current version.
Each version have the last iOS version included.
Try register your device in the provisioning profile using its UDID.
I have created a MAC application with libraries 'libmysqlclient.a' and 'libmysqlclient.18.dylib' with Objective-C language in Xcode 6.3.1 in OSX Yosemite 10.10.3. Its working fine when running through Xcode. And I also archived the .app file to install the app in my MAC, its also working fine. But when i tried to install it in another mac, app crashed and shows the message
"dyld: Library not loaded: libmysqlclient.18.dylib Referenced from: /Users/developer/Documents/UntitledFolder/UserName/SampleApp.app/Contents/MacOS/SampleApp Reason: image not found".
From this message i understand that the particular MAC does not have “libmysqlclient.18.dylib”. So, here my question is "Is it mandatory that each MAC should have the library to install and run the application?". Can anyone give me the solution for this with detailed format of creating the .app file and installing it in other MAC systems.
Thanks in Advance.
You have included both a static (.a) and a dynamic (.dylib) library with your app. that do the same thing. A static library compiles into your program, making it larger. A dynamic library ships with your app. or is already install on your target system. If you ship it with your app., it should be in the Frameworks folder of your app. (you create this folder in Build Phases, Copy File). Use install_name_tool -id to set the library install name to #executable_path\..\Frameworks and also in Build Settings, set Runpath Search Paths to the same.
I downloaded FlickrKit and open its sample project file. But cannot run coz of following error. Changing the 'Deployment Target' didn't work. Please, help !
According to the error, the project was probably made in a newer version of Xcode than the one currently on your machine. Update your software and if it still doesn't work, I'd assume it was made with the newest developer only version, Xcode 5.
If this is the case you must purchase a developer account at the: iPhone Developer Center and download Xcode 5. If you do not want to do that, you cannot use the project.
Its easier than that to recover your existing project. Open the project file on Xcode 5. Then:
Open file inspector for each xib
On "Interface Builder Documents" section change "Open with" to Xcode
4.6 (if it's 5.0). Adjust any other obviously incompatible parameters
Save, Close the project and open with the old Xcode.
I have downloaded a header file and static library file (.a file) from the internet. They are provided by the wireless printer which i bought for my iphone and trying to make print functionality working in my app. The problem is when I run the sample app provided by them to test printer, I get the following linker error...Obviously the app was designed in the previous versions of Xcode and Im using Xcode 4.5. Much appreciated if someone could Guide me..
If you are building an iOS project and it's using the i386 architecture, then you must be building for the simulator. What happens when you build for an actual iOS device?
It's possible that the library was compiled only for the processor architectures for real iOS devices, typically armv6, armv7, or armv7s. You can use the file command in Terminal to see what architectures are in the .a library file.
Check these answers Symbols not found for architecture i386? and symbols not found.
Check your project-> build phases -> Link Binary With Libraries whether there is libwspr240.a file is there or not.
Remove libwspr240.a file and then readd it using
Project --> Build Phases --> Link Binary with Libraries click '+' button to add.
Then Clean and Build the project
I was using ZBar for scanning in iOS5 and it was working well.
Now after updating to iOS6, its not working. It shows a following error.
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/mac4/Desktop/my desktop/My app/MyApp name 20:09:12 /MyApp name/ZBarSDK/libzbar.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What is wrong in my side?
In Xcode, go to the settings of your target,
change 'Valid Architectures'
from
armv7,armv7s
to
armv7
This change means your app will not take advantage of possible optimizations the new iPhone5 processor has, but you don't have to wait for 3rd party libraries to upgrade or mess with a hex editor.
i recently faced the same issue. The problem seems to be that the ZBar SDK is not ready for the armv7s architecture.
I solved the problem this way:
Go to the ZBar homepage and navigate to the mercurial repository (direct link)
Download the zbar repository as zip.
Unzip the file and navigate to the subfolder named "iphone".
Open the XCode project.
Delete the "Examples" folder (the folder caused a build error on my machine).
Hit "CMD + B" and build the source.
Find your new libzbar.a file. (User/Library/Developer/Xcode/DerivedData/zbar...)
Replace the old libzbar.a file in your project with the new one.
Hit "CMD + R" and you are good to go.
The hg sources download/re-compilation tutorial is great, but you don't need to do all that.
Just browse to http://sourceforge.net/projects/zbar/files/iPhoneSDK/beta/ and download ZBarSDK-1.3.1.dmg, and everything will work out of the box for the latest architectures (in my case armv7, armv7s).
Update:
Some of you reported issues with ZBarSDK on XCode 5, iOS 7 or architectures arm64... well I went back to this project today and experienced similar issues and found that there is a ZBarSDK library that is compiled to work with iOS 7 at: http://www.nerdvision.net/app-development/ios/zbar-sdk. I Just replaced the old files with the new ones and my project compiled. Note that the Architectures in my project's Build Settings are set to amrv7, arm64 ($ARCHS_STANDARD), Base SDK is set to iOS 8.0 and I have the Build Active Architectures Only flag set to Yes.
There is a question here at SO about this: zbar SDK dont work for armv7s(iPad 4 iOS 7)
Thanks to #cdescours for the tip!
I have same problem but I just added armv6 and armv7 then it works for iOS6. Just insert armv6.
your binary library does not have code for armv7s. So you should recompile it for the current archtitectures.
Recompile the source, I download the source code for zbar and compile into new project. It's simple.
Clone the Mercurial repository and build with Xcode. It's very easy. Here's a link to the repository:
http://zbar.hg.sourceforge.net/hgweb/zbar/iphone/summary
Came here with the same problem after downloading the tutorial code RDC provided in his blog. Very useful post, but the most helpful answer here was posted by RacZo on 3/29. I just downloaded the original ZBarSDK-1.3.1.dmg image, removed the ZBarSDK from my project and replaced with the original. Done.
I am learning IOS development. After few days digging,
Here is the tutorial for installing ZBar SDK.
1, The accepted answer is correct, but with some limitations. (tried, works!)
2, The alternative solution is here. (tried, works!)
3, The best is to build the all different architectures separated then bind them using lipo: Great Solution (tried, brilliant!)
Some readings for understanding those architectures:
http://wanderingcoder.net/2010/07/19/ought-arm/
http://wanderingcoder.net/2011/09/25/compiling-armv7/