未能发送qLaunchSuccess数据包

我正在使用XCode 4.3.2,并试图打开一个已经存在的基于Facebook SDK示例Project for XCODE的项目,并使用IOS 4.2在目标iPhone上运行它。 虽然它在模拟器上运行,但它在控制台上打印此错误的IPhone上崩溃: failed to send the qLaunchSuccess packet 我真的不知道可能是什么问题

iOS:在自定义导航栏中定位导航栏button

我正在build立一个自定义导航栏的应用程序。 经过一番研究,我决定在UINavigationBar上使用一个类别来做这件事。 导航栏需要比平常大一点,以适应阴影。 这里是代码: #import "UINavigationBar+CustomWithShadow.h" @implementation UINavigationBar (CustomWithShadow) – (void)drawRect:(CGRect)rect { // Change the tint color in order to change color of buttons UIColor *color = [UIColor colorWithHue:0.0 saturation:0.0 brightness:0.0 alpha:0.0]; self.tintColor = color; // Add a custom background image to the navigation bar UIImage *image = [UIImage imageNamed:@"NavBar.png"]; [image drawInRect:CGRectMake(0, 0, self.frame.size.width, 60)]; […]

在swift iOS应用程序中使用FBSDK问题

我使用FBSDK在swift中编写了一个iOS 8应用程序,以允许用户login到我的应用程序。 到目前为止,我已经成功地使用FBSDK v3.25在Swift中使用Bridging-Header.h文件实现loginfunction,并根据FB开发人员网站上的说明更新info.plist。 现在我想创build一个应用程序(或更新当前的应用程序)到FBSDK v4.01,但是当我遵循将其集成到我的应用程序的同一个过程中,我得到以下错误: -> FBSDKAppLinkResolver.h /Users/danieloram/Desktop/IOS/SWIFT/FBLoginUsingSDK4/FacebookSDK/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h:21:9: Include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKAppLinkResolver' /Users/danieloram/Desktop/IOS/SWIFT/FBLoginUsingSDK4/FacebookSDK/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h:21:9: Include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKAppLinkResolver' -> Bridging-Header.h /Users/danieloram/Desktop/IOS/SWIFT/FBLoginUsingSDK4/FBLoginUsingSDK4/Bridging-Header.h:12:9: Could not build module 'FBSDKCoreKit' /Users/danieloram/Desktop/IOS/SWIFT/FBLoginUsingSDK4/FBLoginUsingSDK4/Bridging-Header.h:13:9: Could not build module 'FBSDKLoginKit' /Users/danieloram/Desktop/IOS/SWIFT/FBLoginUsingSDK4/FBLoginUsingSDK4/Bridging-Header.h:12:9: Could not build module 'FBSDKCoreKit' ->FBSDKLoginButton.h /Users/danieloram/Desktop/IOS/SWIFT/FBLoginUsingSDK4/FacebookSDK/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h:21:9: Could not build module 'FBSDKCoreKit' Failed to […]

POST请求使用application / x-www-form-urlencoded

后端开发人员在POST请求中给出了这些指示信息: 路线:{url} / {app_name / {controller} / {action} 控制器和行动应该在小型大写字母上。 APItesting链接:http: * ** * ** * ** * ** * *** 请求应该使用POST方法。 参数应该通过请求内容体(FormUrlEncodedContent)传递。 参数应该是json格式。 参数是关键敏感的。 在协议中没有5号的经验,我search了,并以我的代码结束。 -(id)initWithURLString:(NSString *)URLString withHTTPMEthod:(NSString *)method withHTTPBody:(NSDictionary *)body { _URLString = URLString; HTTPMethod = method; HTTPBody = body; //set error message errorMessage = @"Can't connect to server at this moment. Try again […]

更新Swift中的徽章计数器

使用以下代码,我可以在应用程序编译后立即在徽章图标中获得(2): func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) { let installation = PFInstallation.currentInstallation() installation.setDeviceTokenFromData(deviceToken) installation.badge = 2 installation.saveInBackground() } 我尝试了下一个变体:初始化一个新的var badgeCount = 0和更高版本: func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) { badgeCount++ let installation = PFInstallation.currentInstallation() installation.setDeviceTokenFromData(deviceToken) installation.badge = badgeCount installation.saveInBackground() } 但是,当我收到新的通知,它不会更新到+1。 有谁知道如何解决它?

核心数据的预填充版本?

我的应用程序涉及通过互联网获取一个大型的json文件,然后parsing成核心数据。 这很好,但是我怎样才能将这个Core Data数据库的已经填充版本join到我的应用程序中,所以当它们第一次启动的时候它就在那里。 用户可以决定稍后刷新它。

图片资产目录无法识别xCode5中的视网膜4张照片

为什么我开始尝试做什么我甚至不知道这是可能的(看起来是)在Xcode中的图像资产的function,你可以select一个imageSet是通用的或设备特定的。 当我正在做设备的具体和selectiPhone和Retina 4,并分配给所有的照片,它总是selectiPhone的视网膜图像,而从来没有视网膜4当我使用的iPhone 5(设备或模拟器) 已经搜查的文档,但无法find的东西。 谢谢

“fb://”urlscheme – 官方还是没有?

一些开发者博客已经发布了关于在Facebook iPhone应用程序中打开各种视图的“fb://”urlscheme的信息。 无论我search了多less,我都没有发现任何官方的Facebook来源的一个字。 由于信息是公开的,我敢肯定,我不是唯一一个想知道的人,是否正式批准使用这种URLscheme,我是否允许使用它,是否正常工作,如果不是批准,将是什么,大约的时间表是什么? 提前感谢有关此主题的任何信息!

无法打开可执行文件 – xcode

我得到这个错误…任何想法如何解决它? GenerateDSYMFile /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app.dSYM /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest cd /Users/fmota/Documents/Developer/Protobuf/PBTest setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/usr/bin/dsymutil /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest -o /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app.dSYM error: unable to open executable '/Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest'

CSSMERR_TP_NOT_TRUSTED错误

我根据文档做了所有的事情。我将AppleWorldDeveloper证书标记为始终可信。 和iPhone发行作为总是信任,但我面临以下错误信息。 /Users/keyss/Desktop/Deep/Free_Version/######/build/Release-iphoneos/####.app: replacing invalid existing signature. /Users/keyss/Desktop/Deep/Free_Version/######/build/Release-iphoneos/####.app: CSSMERR_TP_NOT_TRUSTED 还有一件事,我运行的版本,使得它在iphone上工作得很好(有这个错误)