小编use*_*928的帖子

Cocoapods没有这样的文件加载错误

我正在尝试将pod添加到我的xcode项目中.我收到此错误:

LoadError - 没有要加载的文件 - xcodeproj/prebuilt/universal-darwin13.0-1.8.7/xcodeproj_ext /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:inrequire'/ Library/Ruby /Gems/1.8/gems/xcodeproj-0.14.0/lib/xcodeproj/ext.rb:6 /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:inrequire'/ Library/Ruby/Gems /1.8/gems/xcodeproj-0.14.0/lib/xcodeproj/project.rb:4 /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:488:in compute_target_platforms' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:485:in每个'/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:485:in compute_target_platforms' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:55:inanalyze'/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1 /lib/cocoapods/installer.rb:171:in analyze' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:94:inresolve_dependencies'/ Library/Ruby/Gems/1.8/gems/plasticapods-.2 /.在section' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:93:inresolve_dependencies'/ install!' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:38:inLibrary/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:86:in run_install_with_update'/ Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib /cocoapods/command/project.rb:68:in run' /Library/Ruby/Gems/1.8/gems/claide-0.3.2/lib/claide/command.rb:206:in运行'/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command.rb:51:in run' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/bin/pod:19 /usr/bin/pod:23:inload'/ usr/bin/pod :23

我的podfile内容:

pod 'RestKit', '~> 0.21.0'
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激!

iphone xcode file ios cocoapods

19
推荐指数
1
解决办法
4117
查看次数

无效的“Podfile”文件语法错误,意外的$未定义,需要“}”

我正在尝试在项目中安装一个 Pod。但我收到此错误:

无效的“Podfile”文件语法错误,意外的$未定义,需要“}”。

Pod 文件包含:

platform :ios, '7.0' pod 'RestKit', '0.21.0'
Run Code Online (Sandbox Code Playgroud)

终端显示以下消息:

[!] Invalid `Podfile` file: compile error
/Users/work/Desktop/tg/RESTKitDemo/Podfile:1: syntax error, unexpected $undefined, expecting '}'
{\rtf1\ansi\ansicpg1252\cocoartf1265
^. Updating CocoaPods might fix the issue.

#  from /Users/work/Desktop/tg/RESTKitDemo/Podfile:1
#  -------------------------------------------
>  {\rtf1\ansi\ansicpg1252\cocoartf1265
#  {\fonttbl\f0\fmodern\fcharset0 Courier;}
#  -------------------------------------------
Run Code Online (Sandbox Code Playgroud)

我可以知道我的 podfile 有什么问题吗?

iphone ios cocoapods

5
推荐指数
1
解决办法
3万
查看次数

无法在NSUserDefaults中更新Dictionary的键值

我将数据从服务器URL保存到nsuserdefaults作为User Detail.

现在在某些时候,我想更新用户详细信息的2个键,但我无法做到这一点.没有变化.

这是我的代码:

  NSDictionary *user;
  NSMutableDictionary *userMut; 
  user=[[NSUserDefaults standardUserDefaults] objectForKey:@"User Detail"];
  userMut=[user mutableCopy];
  [userMut setValue:@"1" forKey:@"isMobileVerified"];
  [userMut setValue:mobileNo.text forKey:@"mobile"];
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激!Plz让我知道如果我做错了,如何更新存储在nsuserdefaults中的字典中的键值.

objective-c nsdictionary nsuserdefaults ios

2
推荐指数
1
解决办法
3927
查看次数