想要用swift实现一个聊天的功能
需要去找swift的聊天框架。
搜:
swift xmpp library
参考:
-》只是个聊天工具,其中自己的swift的SDK是Java写的库。。。
-》也是在说swift客户端。。。
一个ObjC写的iOS的xmpp框架
去试试:
下载的到:

然后提示是否转换为最新的swift的语法:

无法直接编译,所以去:
参考提示去初始化:
1 | git submodule update --init --recursive && git submodule foreach git pull origin master |

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | licrifandeMacBook-Pro:git crifan$ pwd /Users/crifan/dev/dev_src/swift/SwiftXMPP/git licrifandeMacBook-Pro:git crifan$ git clone https: //github .com /nemesit/SwiftXMPP .git Cloning into 'SwiftXMPP' ... remote: Counting objects: 277, done . remote: Total 277 (delta 0), reused 0 (delta 0), pack-reused 277 Receiving objects: 100% (277 /277 ), 1.66 MiB | 329.00 KiB /s , done . Resolving deltas: 100% (75 /75 ), done . Checking connectivity... done . licrifandeMacBook-Pro:git crifan$ cd SwiftXMPP licrifandeMacBook-Pro:SwiftXMPP crifan$ git submodule update --init --recursive && git submodule foreach git pull origin master Submodule 'XMPPFramework' (https: //github .com /robbiehanson/XMPPFramework .git) registered for path 'XMPPFramework' Cloning into 'XMPPFramework' ... remote: Counting objects: 8944, done . remote: Total 8944 (delta 0), reused 0 (delta 0), pack-reused 8944 Receiving objects: 100% (8944 /8944 ), 22.94 MiB | 1.21 MiB /s , done . Resolving deltas: 100% (4867 /4867 ), done . Checking connectivity... done . Submodule path 'XMPPFramework' : checked out '93a37fe67e82247cb25d9f8498d99ceb3971f182' Submodule 'Vendor/facebook-ios-sdk' (git: //github .com /facebook/facebook-ios-sdk .git) registered for path 'Vendor/facebook-ios-sdk' Cloning into 'Vendor/facebook-ios-sdk' ... remote: Counting objects: 10427, done . remote: Compressing objects: 100% (2 /2 ), done . remote: Total 10427 (delta 0), reused 0 (delta 0), pack-reused 10425 Receiving objects: 100% (10427 /10427 ), 15.23 MiB | 63.00 KiB /s , done . Resolving deltas: 100% (6887 /6887 ), done . Checking connectivity... done . Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk' : checked out '41f9a1895e38f145d1868b23e35411e443c4a12e' Submodule 'vendor/OCHamcrest' (git: //github .com /hamcrest/OCHamcrest ) registered for path 'vendor/OCHamcrest' Submodule 'vendor/OCMock' (git: //github .com /erikdoe/ocmock ) registered for path 'vendor/OCMock' Submodule 'vendor/OHHTTPStubs' (git: //github .com /AliSoftware/OHHTTPStubs .git) registered for path 'vendor/OHHTTPStubs' Cloning into 'vendor/OCHamcrest' ... remote: Counting objects: 14060, done . remote: Total 14060 (delta 0), reused 0 (delta 0), pack-reused 14060 Receiving objects: 100% (14060 /14060 ), 9.35 MiB | 1.58 MiB /s , done . Resolving deltas: 100% (9070 /9070 ), done . Checking connectivity... done . Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OCHamcrest' : checked out '5111f977f992d2d6b1a787d2c6f7b24d951096c3' Submodule 'Source/XcodeCoverage' (git: //github .com /jonreid/XcodeCoverage .git) registered for path 'Source/XcodeCoverage' Cloning into 'Source/XcodeCoverage' ... remote: Counting objects: 398, done . remote: Total 398 (delta 0), reused 0 (delta 0), pack-reused 398 Receiving objects: 100% (398 /398 ), 324.43 KiB | 178.00 KiB /s , done . Resolving deltas: 100% (218 /218 ), done . Checking connectivity... done . Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OCHamcrest/Source/XcodeCoverage' : checked out '633541beb860e340b4406d3b3d2916948d9d3d08' Cloning into 'vendor/OCMock' ... remote: Counting objects: 4961, done . remote: Total 4961 (delta 0), reused 0 (delta 0), pack-reused 4961 Receiving objects: 100% (4961 /4961 ), 9.00 MiB | 17.00 KiB /s , done . Resolving deltas: 100% (3107 /3107 ), done . Checking connectivity... done . Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OCMock' : checked out 'd7c45c4b0d7b8b285a597502d3938640bd751299' Cloning into 'vendor/OHHTTPStubs' ... remote: Counting objects: 3894, done . remote: Total 3894 (delta 0), reused 0 (delta 0), pack-reused 3894 Receiving objects: 100% (3894 /3894 ), 1.14 MiB | 33.00 KiB /s , done . Resolving deltas: 100% (2149 /2149 ), done . Checking connectivity... done . Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OHHTTPStubs' : checked out '922e9ec23d80b16a9c1bebcd1930960bde922179' Submodule 'OHHTTPStubs/UnitTests/AFNetworking' (http: //github .com /AFNetworking/AFNetworking .git) registered for path 'OHHTTPStubs/UnitTests/AFNetworking' Cloning into 'OHHTTPStubs/UnitTests/AFNetworking' ... remote: Counting objects: 13081, done . remote: Compressing objects: 100% (6 /6 ), done . remote: Total 13081 (delta 0), reused 0 (delta 0), pack-reused 13075 Receiving objects: 100% (13081 /13081 ), 4.59 MiB | 89.00 KiB /s , done . Resolving deltas: 100% (8474 /8474 ), done . Checking connectivity... done . Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OHHTTPStubs/OHHTTPStubs/UnitTests/AFNetworking' : checked out '121ef7afa8ce1b1cefdc5312f7e9d75f5af65b8d' Entering 'XMPPFramework' From https: //github .com /robbiehanson/XMPPFramework * branch master -> FETCH_HEAD Updating 93a37fe..6db0eff Fast-forward .gitignore | 3 + .travis.yml | 12 + Authentication /Anonymous/XMPPAnonymousAuthentication .m | 2 +- Authentication /Digest-MD5/XMPPDigestMD5Authentication .m | 21 +- Authentication /Plain/XMPPPlainAuthentication .m | 15 +- Authentication /SCRAM-SHA-1/XMPPSCRAMSHA1Authentication .m | 28 +- Authentication /X-Facebook-Platform/XMPPXFacebookPlatformAuthentication .m | 10 +- Authentication /X-OAuth2-Google/XMPPXOAuth2Google .m | 4 +- Authentication /XMPPCustomBinding .h | 93 ++ Authentication /XMPPSASLAuthentication .h | 16 +- Categories /NSXMLElement +XMPP.h | 8 +- Categories /NSXMLElement +XMPP.m | 94 +- Core /XMPP .h | 1 + Core /XMPPConstants .h | 16 + Core /XMPPConstants .m | 10 + Core /XMPPElement .h | 2 +- Core /XMPPElement .m | 15 +- Core /XMPPIQ .m | 4 + Core /XMPPInternal .h | 61 +- Core /XMPPJID .h | 2 +- Core /XMPPJID .m | 21 +- Core /XMPPLogging .h | 2 +- Core /XMPPMessage .m | 6 +- Core /XMPPModule .m | 36 +- Core /XMPPParser .m | 4 +- Core /XMPPPresence .m | 4 + Core /XMPPStream .h | 84 +- Core /XMPPStream .m | 895 +++++++++++----- Extensions /BandwidthMonitor/XMPPBandwidthMonitor .m | 21 +- Extensions /CoreDataStorage/XMPPCoreDataStorage .m | 53 +- Extensions /FileTransfer/XMPPFileTransfer .h | 80 ++ Extensions /FileTransfer/XMPPFileTransfer .m | 11 + Extensions /FileTransfer/XMPPIncomingFileTransfer .h | 80 ++ Extensions /FileTransfer/XMPPIncomingFileTransfer .m | 960 +++++++++++++++++ Extensions /FileTransfer/XMPPOutgoingFileTransfer .h | 140 +++ Extensions /FileTransfer/XMPPOutgoingFileTransfer .m | 2188 +++++++++++++++++++++++++++++++++++++++ Extensions /GoogleSharedStatus/XMPPGoogleSharedStatus .m | 41 +- Extensions /ProcessOne/XMPPProcessOne .m | 2 +- Extensions /Reconnect/XMPPReconnect .m | 2 +- Extensions /Roster/CoreDataStorage/XMPPGroupCoreDataStorageObject .m | 2 +- Extensions /Roster/CoreDataStorage/XMPPResourceCoreDataStorageObject .m | 4 +- Extensions /Roster/CoreDataStorage/XMPPRosterCoreDataStorage .m | 53 +- Extensions /Roster/CoreDataStorage/XMPPUserCoreDataStorageObject .h | 6 +- Extensions /Roster/CoreDataStorage/XMPPUserCoreDataStorageObject .m | 19 +- Extensions /Roster/MemoryStorage/XMPPResourceMemoryStorageObject .h | 2 +- Extensions /Roster/MemoryStorage/XMPPResourceMemoryStorageObject .m | 21 +- Extensions /Roster/MemoryStorage/XMPPRosterMemoryStorage .m | 58 +- Extensions /Roster/MemoryStorage/XMPPUserMemoryStorageObject .h | 18 +- Extensions /Roster/MemoryStorage/XMPPUserMemoryStorageObject .m | 110 +- Extensions /Roster/XMPPRoster .h | 20 +- Extensions /Roster/XMPPRoster .m | 25 +- Extensions /XEP-0009/XMPPIQ +JabberRPC.m | 2 +- Extensions /XEP-0009/XMPPIQ +JabberRPCResonse.m | 16 +- Extensions /XEP-0009/XMPPJabberRPCModule .m | 24 +- Extensions /XEP-0016/XMPPPrivacy .m | 20 +- Extensions /XEP-0045/CoreDataStorage/XMPPRoomCoreDataStorage .m | 8 +- Extensions /XEP-0045/CoreDataStorage/XMPPRoomMessageCoreDataStorageObject .m | 2 +- Extensions /XEP-0045/HybridStorage/XMPPRoomHybridStorage .m | 40 +- Extensions /XEP-0045/HybridStorage/XMPPRoomMessageHybridCoreDataStorageObject .m | 2 +- Extensions /XEP-0045/HybridStorage/XMPPRoomOccupantHybridMemoryStorageObject .h | 2 +- Extensions /XEP-0045/HybridStorage/XMPPRoomOccupantHybridMemoryStorageObject .m | 24 +- Extensions /XEP-0045/MemoryStorage/XMPPRoomMemoryStorage .m | 22 +- Extensions /XEP-0045/MemoryStorage/XMPPRoomMessageMemoryStorageObject .h | 2 +- Extensions /XEP-0045/MemoryStorage/XMPPRoomMessageMemoryStorageObject .m | 30 +- Extensions /XEP-0045/MemoryStorage/XMPPRoomOccupantMemoryStorageObject .h | 2 +- Extensions /XEP-0045/MemoryStorage/XMPPRoomOccupantMemoryStorageObject .m | 18 +- Extensions /XEP-0045/XMPPMUC .h | 75 +- Extensions /XEP-0045/XMPPMUC .m | 223 +++- Extensions /XEP-0045/XMPPRoom .h | 4 + Extensions /XEP-0045/XMPPRoom .m | 28 +- Extensions /XEP-0054/CoreDataStorage/XMPPvCardCoreDataStorage .m | 4 +- Extensions /XEP-0054/XMPPvCardTemp .h | 2 +- Extensions /XEP-0054/XMPPvCardTemp .m | 11 +- Extensions /XEP-0054/XMPPvCardTempAdr .m | 4 +- Extensions /XEP-0054/XMPPvCardTempBase .h | 2 +- Extensions /XEP-0054/XMPPvCardTempBase .m | 31 +- Extensions /XEP-0054/XMPPvCardTempEmail .m | 4 +- Extensions /XEP-0054/XMPPvCardTempLabel .m | 4 +- Extensions /XEP-0054/XMPPvCardTempTel .m | 4 +- Extensions /XEP-0059/XMPPResultSet .m | 4 +- Extensions /XEP-0060/XMPPPubSub .h | 30 + Extensions /XEP-0060/XMPPPubSub .m | 171 ++- Extensions /XEP-0065/TURNSocket .m | 26 +- Extensions /XEP-0066/XMPPMessage +XEP_0066.m | 2 +- Extensions /XEP-0077/XMPPRegistration .h | 94 ++ Extensions /XEP-0077/XMPPRegistration .m | 237 +++++ Extensions /XEP-0082/NSDate +XMPPDateTimeProfiles.m | 1 + Extensions /XEP-0082/XMPPDateTimeProfiles .m | 6 +- Extensions /XEP-0092/XMPPSoftwareVersion .h | 8 + Extensions /XEP-0092/XMPPSoftwareVersion .m | 2 +- Extensions /XEP-0115/CoreDataStorage/XMPPCapsResourceCoreDataStorageObject .m | 2 +- Extensions /XEP-0115/XMPPCapabilities .m | 48 +- Extensions /XEP-0136/CoreDataStorage/XMPPMessageArchivingCoreDataStorage .m | 9 +- Extensions /XEP-0136/CoreDataStorage/XMPPMessageArchiving_Message_CoreDataObject .m | 4 +- Extensions /XEP-0147/XMPPURI .h | 69 ++ Extensions /XEP-0147/XMPPURI .m | 108 ++ Extensions /XEP-0153/XMPPvCardAvatarModule .h | 6 +- Extensions /XEP-0153/XMPPvCardAvatarModule .m | 4 +- Extensions /XEP-0191/XMPPBlocking .m | 32 +- Extensions /XEP-0198/Memory Storage /XMPPStreamManagementMemoryStorage .h | 14 + Extensions /XEP-0198/Memory Storage /XMPPStreamManagementMemoryStorage .m | 211 ++++ Extensions /XEP-0198/Private/XMPPStreamManagementStanzas .h | 35 + Extensions /XEP-0198/Private/XMPPStreamManagementStanzas .m | 85 ++ Extensions /XEP-0198/XMPPStreamManagement .h | 617 +++++++++++ Extensions /XEP-0198/XMPPStreamManagement .m | 1929 ++++++++++++++++++++++++++++++++++ Extensions /XEP-0202/XMPPTime .m | 1 + Extensions /XEP-0203/NSXMLElement +XEP_0203.m | 1 + Extensions /XEP-0280/XMPPMessage +XEP_0280.h | 19 + Extensions /XEP-0280/XMPPMessage +XEP_0280.m | 118 +++ Extensions /XEP-0280/XMPPMessageCarbons .h | 65 ++ Extensions /XEP-0280/XMPPMessageCarbons .m | 293 ++++++ Extensions /XEP-0352/NSXMLElement +XEP_0352.h | 9 + Extensions /XEP-0352/NSXMLElement +XEP_0352.m | 18 + Sample_XMPPFramework.h | 79 -- Utilities /GCDMulticastDelegate .m | 8 +- Utilities /XMPPIDTracker .m | 20 +- Utilities /XMPPSRVResolver .h | 7 +- Utilities /XMPPSRVResolver .m | 12 +- Utilities /XMPPTimer .h | 41 + Utilities /XMPPTimer .m | 86 ++ Vendor /CocoaAsyncSocket/GCDAsyncSocket .h | 4 + Vendor /CocoaAsyncSocket/GCDAsyncSocket .m | 15 + Vendor /CocoaLumberjack/DDTTYLogger .m | 12 +- Vendor /CocoaLumberjack/Extensions/DDDispatchQueueLogFormatter .m | 4 +- Vendor /KissXML/Categories/NSString +DDXML.h | 6 +- Vendor /KissXML/DDXMLNode .h | 7 +- XMPPFramework.h | 1 + XMPPFramework.podspec | 319 ++++++ Xcode /DesktopXMPP/RequestController .m | 4 +- Xcode /DesktopXMPP/RosterController .m | 8 +- Xcode /DesktopXMPP/XMPPStream .xcodeproj /project .pbxproj | 2 + Xcode /ServerlessDemo/ServerlessDemo .xcodeproj /project .pbxproj | 2 + Xcode /Testing/AutoPingTest/Desktop/AutoPingTest .xcodeproj /project .pbxproj | 22 +- Xcode /Testing/AutoPingTest/Desktop/AutoPingTest/AutoPingTestAppDelegate .m | 2 +- Xcode /Testing/AutoPingTest/Mobile/AutoPingTest .xcodeproj /project .pbxproj | 22 +- Xcode /Testing/AutoPingTest/Mobile/AutoPingTest/AutoPingTestAppDelegate .m | 2 +- Xcode /Testing/AutoTimeTest/Desktop/AutoTimeTest .xcodeproj /project .pbxproj | 44 +- Xcode /Testing/AutoTimeTest/Desktop/AutoTimeTest/AutoTimeTestAppDelegate .m | 2 +- Xcode /Testing/AutoTimeTest/Mobile/AutoTimeTest .xcodeproj /project .pbxproj | 46 +- Xcode /Testing/AutoTimeTest/Mobile/AutoTimeTest/AutoTimeTestAppDelegate .m | 2 +- Xcode /Testing/FacebookTest/FacebookTest .xcodeproj /project .pbxproj | 56 +- Xcode /Testing/MUCTesting/MUCTesting .xcodeproj /project .pbxproj | 30 +- Xcode /Testing/MUCTesting/MUCTesting/MUCTestingAppDelegate .m | 2 +- ... /MulticastDelegateTest/Desktop/MulticastDelegateTest .xcodeproj /project .pbxproj | 22 +- Xcode /Testing/MulticastDelegateTest/Mobile/Default-568h @2x.png | Bin 0 -> 18594 bytes ... /MulticastDelegateTest/Mobile/MulticastDelegateTest .xcodeproj /project .pbxproj | 27 +- Xcode /Testing/ParserTestMac/ParserTestMac .xcodeproj /project .pbxproj | 112 +- Xcode /Testing/ParserTestMac/ParserTestMacAppDelegate .m | 2 +- Xcode /Testing/ParserTestPhone/Classes/ParserTestPhoneAppDelegate .m | 2 +- Xcode /Testing/ParserTestPhone/Default-568h @2x.png | Bin 0 -> 18594 bytes Xcode /Testing/ParserTestPhone/ParserTestPhone .xcodeproj /project .pbxproj | 141 +-- ... /Mac/TestCapabilitiesHashing/TestCapabilitiesHashing .xcodeproj /project .pbxproj | 24 +- ... /TestCapabilitiesHashing/TestCapabilitiesHashing .xcodeproj /project .pbxproj | 18 +- Xcode /Testing/TestElementReceipt/TestElementReceipt .xcodeproj /project .pbxproj | 18 +- Xcode /Testing/TestIDTracker/TestIDTracker .xcodeproj /project .pbxproj | 317 ++++++ Xcode /Testing/TestSRVResolver/TestSRVResolver .xcodeproj /project .pbxproj | 8 +- Xcode /Testing/TestSRVResolver/TestSRVResolverAppDelegate .m | 8 +- Xcode /Testing/TestXEP82/Mac/TestXEP82 .xcodeproj /project .pbxproj | 6 +- Xcode /Testing/XMPPTesting .xcworkspace /contents .xcworkspacedata | 14 +- Xcode /Testing2/Podfile | 14 + Xcode /Testing2/Podfile .lock | 10 + Xcode /Testing2/XMPPFrameworkTests .xcworkspace /contents .xcworkspacedata | 10 + ... /XMPPFrameworkTests .xcworkspace /xcshareddata/XMPPFrameworkTests .xccheckout | 41 + ... /XMPPFrameworkTests/XMPPFrameworkCoreDataTests/CapabilitiesHashingTest .m | 143 +++ Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkCoreDataTests/Info .plist | 24 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests .xcodeproj /project .pbxproj | 1174 +++++++++++++++++++++ ... /XMPPFrameworkTests .xcodeproj /xcshareddata/xcschemes/XMPPFrameworkTests .xcscheme | 136 +++ Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate .h | 17 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate .m | 45 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base .lproj /LaunchScreen .xib | 41 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base .lproj /Main .storyboard | 25 + ... /XMPPFrameworkTests/Images .xcassets /AppIcon .appiconset /Contents .json | 38 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Info .plist | 40 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController .h | 15 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController .m | 27 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/main .m | 16 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/EncodeDecodeTest .m | 101 ++ Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/Info .plist | 24 + Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/MulticastDelegateTest .m | 209 ++++ Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/XMPPURITests .m | 97 ++ Xcode /iPhoneXMPP/Classes/RootViewController .m | 6 +- Xcode /iPhoneXMPP/Classes/iPhoneXMPPAppDelegate .m | 11 +- Xcode /iPhoneXMPP/iPhoneXMPP .xcodeproj /project .pbxproj | 8 +- module /module .modulemap | 19 + 184 files changed, 13093 insertions(+), 1057 deletions(-) create mode 100644 .travis.yml create mode 100644 Authentication /XMPPCustomBinding .h create mode 100644 Core /XMPPConstants .h create mode 100644 Core /XMPPConstants .m create mode 100644 Extensions /FileTransfer/XMPPFileTransfer .h create mode 100644 Extensions /FileTransfer/XMPPFileTransfer .m create mode 100644 Extensions /FileTransfer/XMPPIncomingFileTransfer .h create mode 100644 Extensions /FileTransfer/XMPPIncomingFileTransfer .m create mode 100644 Extensions /FileTransfer/XMPPOutgoingFileTransfer .h create mode 100644 Extensions /FileTransfer/XMPPOutgoingFileTransfer .m create mode 100644 Extensions /XEP-0077/XMPPRegistration .h create mode 100644 Extensions /XEP-0077/XMPPRegistration .m create mode 100644 Extensions /XEP-0147/XMPPURI .h create mode 100644 Extensions /XEP-0147/XMPPURI .m create mode 100644 Extensions /XEP-0198/Memory Storage /XMPPStreamManagementMemoryStorage .h create mode 100644 Extensions /XEP-0198/Memory Storage /XMPPStreamManagementMemoryStorage .m create mode 100644 Extensions /XEP-0198/Private/XMPPStreamManagementStanzas .h create mode 100644 Extensions /XEP-0198/Private/XMPPStreamManagementStanzas .m create mode 100644 Extensions /XEP-0198/XMPPStreamManagement .h create mode 100644 Extensions /XEP-0198/XMPPStreamManagement .m create mode 100644 Extensions /XEP-0280/XMPPMessage +XEP_0280.h create mode 100644 Extensions /XEP-0280/XMPPMessage +XEP_0280.m create mode 100644 Extensions /XEP-0280/XMPPMessageCarbons .h create mode 100644 Extensions /XEP-0280/XMPPMessageCarbons .m create mode 100644 Extensions /XEP-0352/NSXMLElement +XEP_0352.h create mode 100644 Extensions /XEP-0352/NSXMLElement +XEP_0352.m delete mode 100644 Sample_XMPPFramework.h create mode 100644 Utilities /XMPPTimer .h create mode 100644 Utilities /XMPPTimer .m create mode 100644 XMPPFramework.h create mode 100644 XMPPFramework.podspec create mode 100644 Xcode /Testing/MulticastDelegateTest/Mobile/Default-568h @2x.png create mode 100644 Xcode /Testing/ParserTestPhone/Default-568h @2x.png create mode 100644 Xcode /Testing2/Podfile create mode 100644 Xcode /Testing2/Podfile .lock create mode 100644 Xcode /Testing2/XMPPFrameworkTests .xcworkspace /contents .xcworkspacedata create mode 100644 Xcode /Testing2/XMPPFrameworkTests .xcworkspace /xcshareddata/XMPPFrameworkTests .xccheckout create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkCoreDataTests/CapabilitiesHashingTest .m create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkCoreDataTests/Info .plist create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests .xcodeproj /project .pbxproj create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests .xcodeproj /xcshareddata/xcschemes/XMPPFrameworkTests .xcscheme create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate .h create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate .m create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base .lproj /LaunchScreen .xib create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base .lproj /Main .storyboard create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Images .xcassets /AppIcon .appiconset /Contents .json create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Info .plist create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController .h create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController .m create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTests/main .m create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/EncodeDecodeTest .m create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/Info .plist create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/MulticastDelegateTest .m create mode 100644 Xcode /Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/XMPPURITests .m create mode 100644 module /module .modulemap licrifandeMacBook-Pro:SwiftXMPP crifan$ |
下载到了所有的依赖的代码:

然后,折腾了很多东西,解决了很多问题,经历千辛万苦终于编译通过了,然后运行显示出界面了:



转载请注明:在路上 » [记录]swift中添加支持聊天框架XMPP