I still believe in no-warnings coding policy. Old problem, new solution.
Code warnings are often signs of real problems and have to be checked each and all. Many times you can rewrite the code in a better way, but sometimes that's not possible. For example generic protocol API offers method parameters, which are not needed in certain cases. You get the "Unused Parameter" warning.
What to do?
Showing posts with label warning. Show all posts
Showing posts with label warning. Show all posts
Monday, May 14, 2012
Monday, February 6, 2012
Icon dimensions (0x0) don't meet the the size requirements
Got a weird warning while validating my FontType 1.1 update at the weekend:
iPhone/iPod Touch: Icon dimensions (0x0) don't meet the the size requirements. The icon file must be 57x57 pixels, in .png formatIcon was just fine, so it's unclear what this means. However there are two theories: a) latest Apple iOS update messed up something or b) Apple iTunes Connect server has some issues.
Monday, October 3, 2011
Application Validation Problems
Tried all weekend to make a release, these were the last issues to be solved:
warning: Icon specified in the Info.plist not found under the top level app wrapper: Icon-SMall@2x.png (-19007)
Labels:
AppID,
bundle,
distribution,
entitlements,
info.plist,
release,
warning,
xcode4
Tuesday, September 27, 2011
declaration of 'struct sockaddr_in' will not be visible outside of this function
Everybody and their mom has own modified Reachability code and none are compatible. Yet another fix to the "default" code, in case you see this kind of warning or error (no-warnings policy):
Reachability.h: error: declaration of 'struct sockaddr_in' will not be visible outside of this function [-Werror,3]Fix is easy, just add this:
#import <netinet/in.h>Hope Apple would pull together all "fixes" and update the Reachability master version for all of us.
Monday, June 6, 2011
How to Clear Project Build Results
You have a project with several targets, of which at least one fails. You can see this at Xcode4 iTunes-styled toolbar info window at top.
Except that The Target that you just build was just fine. No warnings, no errors. Xcode4 still tells something went wrong!
Except that The Target that you just build was just fine. No warnings, no errors. Xcode4 still tells something went wrong!
Wednesday, March 23, 2011
Request for member 'item' in something not a structure or union
There are several ways how you can get this compiler error - and here's another one. With one way to fix it.
First setup everything:
First setup everything:
@interface MyPlayer : MPMoviePlayerViewControllerThis doesn't work, compiler error:
{
UIView *parentView;
}
@property (nonatomic, retain) UIView *parentView;
@end
@interface MyView : UIView
{
MyPlayer *myPlayer;
}
@end
self.myPlayer = [[MyPlayer alloc] init];This is ok:
self.myPlayer.parentView = self;
MyPlayer *player = [[MyPlayer alloc] init];Divide and conquer... If this didn't help you, remember to check that you import correct header files.
player.parentView = self;
self.myPlayer = player;
[player release];
Wednesday, February 2, 2011
Can't Start Debugger. CFSocketSetAddress Returns Error -1
Was debugging an application in real device, when suddenly got an error note about failed network connection. Since this happened before application launch, I got curious.
Why would debugging application in device fail due network error before launch? Why would it fail now, when everything was ok dozens of times just beforehands (yes, I do a lot of quick but short debugging sessions in real device)?
Labels:
CFSocketSetAddress,
com.apple.debugserver,
console,
debug,
device,
socket,
warning
Tuesday, February 1, 2011
Stray '/302' in program
Much of writing code is pretty automated, I don't usually even consciously recognize what I do.
Too busy thinking about the problem, possible solution(s) and side-effects. Build or Build-and-Analyze is a good way to take a few seconds to think about what's next on the list - and then it happens. Compiler error!
Too busy thinking about the problem, possible solution(s) and side-effects. Build or Build-and-Analyze is a good way to take a few seconds to think about what's next on the list - and then it happens. Compiler error!
Thursday, January 20, 2011
Warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform
Got mysterious warnings, while trying to debug an application in iPhone device. Used to work, but suddenly not any more! The only difference I can think of is that I'm using Facebook iOS SDK for the first time.
Tuesday, December 21, 2010
Data Formatters temporarily unavailable, will re-try after a continue
Mysterious crash happens, when I'm trying to display about 65MB image in iPhone4. Wonder what could be the problem... (hint: trying to display 65 MEGABYTE image file):
Program received signal: “0”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
Labels:
crash,
debug,
didReceiveMemoryWarning,
NSAutoReleasePool,
warning
Tuesday, November 16, 2010
Code Sign error: Provisioning profile can't be found
Check what is Info.plist Bundle Identifier, go to Apple iOS provision portal and download related App ID provision file and install. Note that if you're not Team Admin, you have to ask someone else to download the file for you.
Actual error code shows also cryptic mobileprovision id, but that won't help you much:
Actual error code shows also cryptic mobileprovision id, but that won't help you much:
Code Sign error: Provisioning profile '123456F8-1234-1234-ABCD-ABCDEFGH1234' can't be found
The executable was signed with invalid entitlements (install)
This is not the error with EXACTLY same error note you get during ad hoc release creation in Xcode (see here). This one comes, when you try to install that "successfully" created ad hoc release into device.
OPEN, no idea what went wrong or how to fix. Yet.
OPEN, no idea what went wrong or how to fix. Yet.
Team Provisioning Profile - Invalid. Renew button disabled
Team Provisioning Profile - Invalid. Renew button disabled.
Open Xcode Organizer, find Team profile and press Renew button. Automatically downloads Team Provisioning Profile, but only for apps with * App ID.
Open Xcode Organizer, find Team profile and press Renew button. Automatically downloads Team Provisioning Profile, but only for apps with * App ID.
Monday, November 15, 2010
Everything That Can Go Wrong With Xcode Build and Release
Right now I'm in the middle of serious mess up of my Xcode development environment, can't create ad hoc builds. No idea what triggered it, thus no idea what or how to fix. Since same error notes keep popping up time after time, I start documenting each. Maybe I'll slowly gather enough info to fix something.
Xcode error notes:
You have sympathy. It won't help either.
Xcode error notes:
- The executable was signed with invalid entitlements (Xcode)
- The executable was signed with invalid entitlements (install) OPEN
- Command /usr/bin/codesign failed with exit code 1
- Build & Archive - Share Application - nothing happens
- Build & Archive - Share Application - unable to find user OPEN
- Build & Archive - Share Application - Email - missing plugin OPEN
- Team Provisioning Profile - Invalid. Renew button disabled.
- Code Sign error: The identity 'iPhone Developer' doesn't match any identity in any profile
- Code Sign error: Provisioning profile can't be found
- Apple Technical Note TN2242: Resolving "0xE800003A", applications not launching and "missing entitlement"
- Cocoanetics: A signing identity matching this profile could not be found in your keychain
- Apple Developer Forums
- Stack overflow
You have sympathy. It won't help either.
Labels:
adhoc,
build,
certificate,
debug,
distribution,
provisioning,
warning
Command /usr/bin/codesign failed with exit code 1
Select your project root in Xcode, command-i for Info, go to Configurations tab, delete old "Ad Hoc" configuration, duplicate Release and rename as "Ad Hoc". Rebuild and i installs and runs on connected device.
Problem might have been due space in name (even when it used to work earlier).
Problem might have been due space in name (even when it used to work earlier).
The executable was signed with invalid entitlements
Try to create ad hoc release in Xcode, got error note:
Case 2: make sure you have Entitlements.plist file in your project, containing just one prorerty called get-task-allow". This has to be off. Add name of this file into your project ad hoc release Code Signing Entitlements.
The executable was signed with invalid entitlements.Case 1: Go to Provisioning Portal - Provisioning - Distribution, find your project Distribution Provisioning Profile, Edit - Modify (do whatever and revert if everything already is right) - Submit - Download and double-click the file at your dev machine. Clean and rebuild.
The entitlements specified in your application's Code Signing Entitlements file do not matchc those specified in your provisioning profile (0xE8008016). [OK]
Case 2: make sure you have Entitlements.plist file in your project, containing just one prorerty called get-task-allow". This has to be off. Add name of this file into your project ad hoc release Code Signing Entitlements.
Labels:
debug,
distribution,
entitlements,
provisioning,
signing,
warning,
Xcode
Thursday, November 11, 2010
How to Undo Past Last Point
This is one of those things you do only once, thus easily forgotten. Did it for "my" machine, but now I'm a contractor using customer machine.
So how do I get rid of this annoying warning note, when I want to undo after saving a file:
So how do I get rid of this annoying warning note, when I want to undo after saving a file:
You are about to undo past the last point this file was saved. Do you want to do this?Open Terminal window and type:
defaults write com.apple.Xcode XCShowUndoPastSaveWarning NORestart Xcode and you're fine. Until next machine.
Subscribe to:
Posts (Atom)